diff --git a/.gitignore b/.gitignore index 5cf0cd1..5010e18 100644 --- a/.gitignore +++ b/.gitignore @@ -38,5 +38,6 @@ /node_modules .idea +.DS_Store cfa_ui_components.tailwind.css *.swp diff --git a/app/assets/images/checkmark.svg b/app/assets/images/checkmark.svg new file mode 100644 index 0000000..905a96e --- /dev/null +++ b/app/assets/images/checkmark.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/app/controllers/navigation/screener_navigation.rb b/app/controllers/navigation/screener_navigation.rb index d76fa17..1e6caf5 100644 --- a/app/controllers/navigation/screener_navigation.rb +++ b/app/controllers/navigation/screener_navigation.rb @@ -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 diff --git a/app/controllers/new_response_controller.rb b/app/controllers/new_response_controller.rb new file mode 100644 index 0000000..3962cbb --- /dev/null +++ b/app/controllers/new_response_controller.rb @@ -0,0 +1,5 @@ +class NewResponseController < QuestionController + def show_progress_bar + false + end +end diff --git a/app/controllers/temp_end_controller.rb b/app/controllers/temp_end_controller.rb deleted file mode 100644 index 9d25329..0000000 --- a/app/controllers/temp_end_controller.rb +++ /dev/null @@ -1,6 +0,0 @@ -class TempEndController < QuestionController - layout "application" - def show_progress_bar - false - end -end diff --git a/app/views/new_response/edit.html.erb b/app/views/new_response/edit.html.erb new file mode 100644 index 0000000..bcd00e9 --- /dev/null +++ b/app/views/new_response/edit.html.erb @@ -0,0 +1,6 @@ +<%= image_tag "checkmark.svg", class: "illustration left-justified" %> +<% content_for :question_title, t("views.new_response.edit.title") %> +

<%= content_for(:question_title) %>

+

<%= t("views.new_response.edit.title_help_text") %>

+
<%= link_to t("views.new_response.edit.check_work_rules_for_someone_else"), Navigation::ScreenerNavigation.first.to_path_helper, class: "button button--primary" %>
+
<%= link_to t("views.new_response.edit.close"), root_path, class: "button" %>
diff --git a/app/views/temp_end/edit.html.erb b/app/views/temp_end/edit.html.erb deleted file mode 100644 index 3a63236..0000000 --- a/app/views/temp_end/edit.html.erb +++ /dev/null @@ -1,36 +0,0 @@ -
-
-
-

End of example

-
- - - - - - - - - - - - - - <% Screener.all.each do |screener| %> - - - - - - - - - - - - - <% end %> -
screener idwritten languagespoken languagefirst_namemiddle_namelast_namebirth_datephone_numberis_receiving_snap_benefitsemail
<%= screener.id %><%= screener.language_preference_written %><%= screener.language_preference_spoken %><%= screener.first_name %><%= screener.middle_name %><%= screener.last_name %><%= screener.birth_date %><%= screener.phone_number %><%= screener.is_receiving_snap_benefits_yes? %><%= screener.email %>
-
-
-
diff --git a/config/locales/en.yml b/config/locales/en.yml index ff349a1..eba0b4c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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 if the SNAP work rules apply to you. diff --git a/config/locales/es.yml b/config/locales/es.yml index 8d85f3f..6b2b44a 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -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 deben cumplir con las reglas de trabajo de SNAP. diff --git a/spec/features/flow_spec.rb b/spec/features/flow_spec.rb index 3eb95b5..90fa247 100644 --- a/spec/features/flow_spec.rb +++ b/spec/features/flow_spec.rb @@ -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