Skip to content

Commit

Permalink
FFS-983: Agreement Page (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephGasiorekUSDS committed Jul 1, 2024
1 parent b04533c commit 768da2d
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/app/controllers/cbv/agreements_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class Cbv::AgreementsController < Cbv::BaseController
def show
end
end
2 changes: 2 additions & 0 deletions app/app/controllers/cbv/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def set_payments
def next_path
case params[:controller]
when "cbv/entries"
cbv_flow_agreement_path
when "cbv/agreements"
cbv_flow_employer_search_path
when "cbv/employer_searches"
cbv_flow_summary_path
Expand Down
23 changes: 23 additions & 0 deletions app/app/views/cbv/agreements/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<h1><%= t('.header') %></h1>
<p><%= t('.subheader') %></p>
<ul>
<li><%= t('.step1') %></li>
<li><%= t('.step2') %></li>
<li><%= t('.step3') %></li>
<li><%= t('.step4') %></li>
<li><%= t('.step5') %></li>
</ul>

<div class="usa-alert usa-alert--info margin-bottom-3 margin-top-3">
<div class="usa-alert__body">
<p class="usa-alert__text">
<%= t('.information_is_secure') %>
</p>
</div>
</div><p class="text-bold"><%= t('.by_continuing') %></p>

<%= link_to next_path do %>
<button class="usa-button usa-button--outline" type="button">
<%= t('.continue') %>
</button>
<% end %>
12 changes: 12 additions & 0 deletions app/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ en:
subject: Verify your income for your benefit application
thank_you: Thank you!
cbv:
agreements:
show:
by_continuing: By continuing, you are letting Verify.gov access your payment information.
continue: Continue
header: How verifying your income works
information_is_secure: Your information is secure. We will not share or keep your log in information. You will be able to preview and approve everything that is shared with your caseworker.
step1: Find your employer or payroll provider
step2: Sign into your employer's account
step3: Review your payment records
step4: Add other employers to your records if you have them
step5: Share your payment information with your caseworker
subheader: 'All you have to do is complete five easy steps:'
employer_searches:
show:
employer_not_listed: Employer not listed?
Expand Down
1 change: 1 addition & 0 deletions app/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
resource :employer_search, only: %i[show]
resource :summary, only: %i[show update]
resource :share, only: %i[show update]
resource :agreement, only: %i[show]

# Utility route to clear your session; useful during development
resource :reset, only: %i[show]
Expand Down

0 comments on commit 768da2d

Please sign in to comment.