diff --git a/app/models/journeys/early_years_payment/practitioner/session_answers.rb b/app/models/journeys/early_years_payment/practitioner/session_answers.rb index 2d4065923d..383a577ffa 100644 --- a/app/models/journeys/early_years_payment/practitioner/session_answers.rb +++ b/app/models/journeys/early_years_payment/practitioner/session_answers.rb @@ -3,7 +3,7 @@ module EarlyYearsPayment module Practitioner class SessionAnswers < Journeys::SessionAnswers def policy - nil + Policies::EarlyYearsPayments end end end diff --git a/app/models/journeys/early_years_payment/practitioner/slug_sequence.rb b/app/models/journeys/early_years_payment/practitioner/slug_sequence.rb index 2f098d9368..f059bb7b85 100644 --- a/app/models/journeys/early_years_payment/practitioner/slug_sequence.rb +++ b/app/models/journeys/early_years_payment/practitioner/slug_sequence.rb @@ -9,6 +9,8 @@ class SlugSequence personal-details enter-home-address email-address + email-verification + mobile-number ].freeze def self.start_page_url diff --git a/app/views/claims/_one_time_password.html.erb b/app/views/claims/_one_time_password.html.erb index 67fac5914e..1835071f37 100644 --- a/app/views/claims/_one_time_password.html.erb +++ b/app/views/claims/_one_time_password.html.erb @@ -5,6 +5,7 @@ <%= form_with model: form, url: claim_path(current_journey_routing_name), builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> <%= f.govuk_error_summary %> + <% caption_settings = { text: "#{email_or_mobile == "email" ? "Email address" : "Mobile number"} verification", size: "xl" } if show_caption %> <%= f.govuk_text_field :one_time_password, width: 5, autocomplete: "off", @@ -13,10 +14,7 @@ tag: "h1", size: "l" }, - caption: { - text: "#{email_or_mobile == "email" ? "Email address" : "Mobile number"} verification", - size: "xl" - }, + caption: caption_settings, hint: -> do %>
<%= t("one_time_password.hint1_html", email_or_mobile_message: email_or_text_message, email_or_mobile_value: email_or_mobile_value) %> diff --git a/app/views/claims/email_verification.html.erb b/app/views/claims/email_verification.html.erb index 712fa47c5e..be0131397f 100644 --- a/app/views/claims/email_verification.html.erb +++ b/app/views/claims/email_verification.html.erb @@ -13,6 +13,7 @@ form: @form, current_journey_routing_name: current_journey_routing_name, email_or_mobile: "email", - email_or_text_message: "an email" + email_or_text_message: "an email", + show_caption: true } ) %> diff --git a/app/views/early_years_payment/practitioner/claims/email_address.html.erb b/app/views/early_years_payment/practitioner/claims/email_address.html.erb index ddd00ddeb2..85d16ba087 100644 --- a/app/views/early_years_payment/practitioner/claims/email_address.html.erb +++ b/app/views/early_years_payment/practitioner/claims/email_address.html.erb @@ -1 +1,24 @@ -
email address page goes here
+<% content_for(:page_title, page_title("Your email address", journey: current_journey_routing_name, show_error: @form.errors.any?)) %> + +<%= @form.t("hint1") %>
+<%= @form.t("hint2") %>
+ <% end %> + + <%= f.govuk_submit %> + <% end %> +