Skip to content

Commit

Permalink
Merge pull request #3335 from DFE-Digital/2488-candidate-name-in-refe…
Browse files Browse the repository at this point in the history
…rence-flow

Update content when asking for candidate’s name in references flow
  • Loading branch information
paulrobertlloyd committed Nov 4, 2020
2 parents 88119ac + 7819278 commit b0ca21a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
Expand Up @@ -7,15 +7,19 @@
model: @reference_candidate_name_form,
url: candidate_interface_references_create_candidate_name_path(@reference.id),
) do |f| %>
<%= f.govuk_error_summary %>

<h1 class="govuk-heading-xl">
<%= t('page_titles.references_candidate_name') %>
</h1>

<%= f.govuk_error_summary %>
<p class="govuk-body">
Tell the referee who the reference is for.
</p>

<%= f.govuk_text_field :first_name, label: { text: 'First name', size: 'm' }, hint_text: 'Or given names' %>
<%= f.govuk_text_field :first_name, label: { text: t('application_form.references.candidate_name.first_name.label'), size: 'm' }, hint: { text: t('application_form.references.candidate_name.first_name.hint_text') } %>
<%= f.govuk_text_field :last_name, label: { text: 'Last name', size: 'm' }, hint_text: 'Or family name' %>
<%= f.govuk_text_field :last_name, label: { text: t('application_form.references.candidate_name.last_name.label'), size: 'm' }, hint: { text: t('application_form.references.candidate_name.last_name.hint_text') } %>
<%= f.govuk_submit 'Save and continue' %>
<% end %>
Expand Down
7 changes: 7 additions & 0 deletions config/locales/application_form.yml
Expand Up @@ -424,6 +424,13 @@ en:
professional: 'For example, ‘He was my line manager in my last job. I’ve known him for 2 years’.'
school_based: 'For example, ‘She’s the deputy head at the school where I currently volunteer. I’ve known her for 3 years’.'
character: 'For example, ‘She’s the head coach for my athletics club. I’ve known her for 5 years’.'
candidate_name:
first_name:
label: First name
hint_text: Or given names
last_name:
label: Last name
hint_text: Or family name
delete_referee:
action: Delete referee
confirm: Yes I’m sure - delete this referee
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en.yml
Expand Up @@ -127,7 +127,7 @@ en:
references_email_address: What is the referee’s email address?
references_relationship: How do you know this referee and how long have you known them?
references_unsubmitted_review: Check your answers before sending your request
references_candidate_name: Tell the referee your name
references_candidate_name: What is your name?
references_reminder: Would you like to send a reminder to this referee?
retry_reference_request: Retry reference request
providers: Courses on this service
Expand Down
Expand Up @@ -102,7 +102,7 @@ def and_i_choose_to_request_reference_immediately
end

def then_i_am_prompted_for_my_name
expect(page).to have_content('Tell the referee your name')
expect(page).to have_content('What is your name?')
end

def when_i_continue_without_entering_my_name
Expand Down

0 comments on commit b0ca21a

Please sign in to comment.