Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@

/node_modules
.idea
.DS_Store
cfa_ui_components.tailwind.css
*.swp
5 changes: 5 additions & 0 deletions app/assets/images/checkmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/controllers/navigation/screener_navigation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ScreenerNavigation < ControllerNavigation::ControllerNavigation
ControllerNavigation::NavigationStep.new(BasicInfoMilestoneController),
ControllerNavigation::NavigationStep.new(PersonalInformationController),
ControllerNavigation::NavigationStep.new(EmailController),
ControllerNavigation::NavigationStep.new(TempEndController)
ControllerNavigation::NavigationStep.new(NewResponseController)
])
].freeze
end
Expand Down
5 changes: 5 additions & 0 deletions app/controllers/new_response_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class NewResponseController < QuestionController
def show_progress_bar
false
end
end
6 changes: 0 additions & 6 deletions app/controllers/temp_end_controller.rb

This file was deleted.

6 changes: 6 additions & 0 deletions app/views/new_response/edit.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<%= image_tag "checkmark.svg", class: "illustration left-justified" %>
<% content_for :question_title, t("views.new_response.edit.title") %>
<h1 class="h2"><%= content_for(:question_title) %></h1>
<p><%= t("views.new_response.edit.title_help_text") %></p>
<div><%= link_to t("views.new_response.edit.check_work_rules_for_someone_else"), Navigation::ScreenerNavigation.first.to_path_helper, class: "button button--primary" %></div>
<div><%= link_to t("views.new_response.edit.close"), root_path, class: "button" %></div>
36 changes: 0 additions & 36 deletions app/views/temp_end/edit.html.erb

This file was deleted.

6 changes: 6 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ en:
language_preference_spoken_label: What language do you prefer to speak?
language_preference_written_label: What language do you prefer to read or write?
title: Language Preference
new_response:
edit:
check_work_rules_for_someone_else: Check work rules for someone else
close: Close
title: You’re all done.
title_help_text: Do you want to check if the SNAP work rules apply to someone else in your household?
overview:
edit:
help_text_html: We’ll help prepare a document that you can submit to your SNAP agency. That way, your agency will know <strong>if the SNAP work rules apply</strong> to you.
Expand Down
6 changes: 6 additions & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ es:
language_preference_spoken_label: "¿En qué idioma prefiere hablar?"
language_preference_written_label: "¿En qué idioma prefiere leer o escribir?"
title: Preferencia de idioma
new_response:
edit:
check_work_rules_for_someone_else: Verificar las reglas de trabajo para otra persona
close: Cerrar
title: Ha finalizado.
title_help_text: "¿Desea verificar si las reglas de trabajo de SNAP aplican a otra persona de su hogar?"
overview:
edit:
help_text_html: Le ayudaremos a preparar un documento que podrá enviar a su agencia de SNAP. Así, su agencia sabrá si usted y los demás adultos de su hogar <strong> deben cumplir con las reglas de trabajo de SNAP.</strong>
Expand Down
2 changes: 1 addition & 1 deletion spec/features/flow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
fill_in I18n.t("views.email.edit.email_confirmation"), with: "hi@example.com"
click_on I18n.t("general.continue")

expect(page).to have_selector("h2", text: "End of example")
expect(page).to have_selector("h1", text: I18n.t("views.new_response.edit.title"))
end
end