-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d1bbde
commit bc1ea09
Showing
5 changed files
with
26 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
class Cbv::AddJobsController < Cbv::BaseController | ||
def show | ||
end | ||
def show | ||
end | ||
|
||
def create | ||
additional_jobs = params[:additional_jobs] | ||
if additional_jobs == "true" | ||
redirect_to cbv_flow_employer_search_path | ||
elsif additional_jobs == "false" | ||
redirect_to cbv_flow_summary_path | ||
else | ||
redirect_to cbv_flow_add_job_path, notice: t(".notice") | ||
end | ||
def create | ||
additional_jobs = params[:additional_jobs] | ||
if additional_jobs == "true" | ||
redirect_to cbv_flow_employer_search_path | ||
elsif additional_jobs == "false" | ||
redirect_to cbv_flow_summary_path | ||
else | ||
redirect_to cbv_flow_add_job_path, notice: t(".notice") | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<h2><%= t('.header', day_count: '90') %></h2> | ||
<p><%= t('.subheader') %></p> | ||
<h2><%= t(".header", day_count: "90") %></h2> | ||
<p><%= t(".subheader") %></p> | ||
|
||
<%= form_with(url: cbv_flow_add_job_path, builder: UswdsFormBuilder) do |f| %> | ||
<%= f.radio_button(:additional_jobs, 'true', { 'label': t('.yes_radio')}) %> | ||
<%= f.radio_button(:additional_jobs, 'false', { 'label': t('.no_radio')}) %> | ||
<%= f.submit t('.continue') %> | ||
<% end %> | ||
<%= f.radio_button(:additional_jobs, "true", { 'label': t(".yes_radio") }) %> | ||
<%= f.radio_button(:additional_jobs, "false", { 'label': t(".no_radio") }) %> | ||
<%= f.submit t(".continue") %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
<h2> | ||
<% if employer_name %> | ||
<%= t('.header', employer_name: employer_name) %> | ||
<%= t(".header", employer_name: employer_name) %> | ||
<% else %> | ||
<%= t('.header_no_employer_name') %> | ||
<%= t(".header_no_employer_name") %> | ||
<% end %> | ||
</h2> | ||
<% if @payments.any? %> | ||
<p><%= t('.subheader', day_count: day_count, start_date: start_date, end_date: end_date) %></p> | ||
<p><%= t(".subheader", day_count: day_count, start_date: start_date, end_date: end_date) %></p> | ||
<ul> | ||
<% @payments.each do |payment| %> | ||
<li><%= t('.payment_of', amount: number_to_currency(payment[:amount])) %></li> | ||
<li><%= t(".payment_of", amount: number_to_currency(payment[:amount])) %></li> | ||
<% end %> | ||
</ul> | ||
|
||
<%= link_to next_path do %> | ||
<button class="usa-button usa-button--outline" type="button"> | ||
<%= t('.continue') %> | ||
<%= t(".continue") %> | ||
</button> | ||
<% end %> | ||
<% else %> | ||
<h3 class="site-preview-heading"> | ||
<%= t('.none_found') %> | ||
<%= t(".none_found") %> | ||
</h3> | ||
<% end %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters