Skip to content

Commit

Permalink
Merge pull request #2977 from bitzesty/reference-field-qa
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubosky committed Jun 24, 2024
2 parents 9971c40 + 9013b83 commit 2dfe317
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/content_only/_award_nickname.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
' up to this date.

- if is_nickname_required
= render "content_only/award_nickname_block"
= render partial: "content_only/award_nickname_block", locals: { award_type: award_type }

p#get-started.get-started.group.govuk-body
- title = is_nickname_required ? "Save and start eligibility questionnaire" : "Start eligibility questionnaire"
Expand Down
16 changes: 11 additions & 5 deletions app/views/content_only/_award_nickname_block.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ br
h2.govuk-label-wrapper
= label_tag :nickname, "Please choose a reference for this application:", class: 'govuk-label govuk-label--l', for: 'award-nickname'

p.govuk-hint
| If you have more than one innovation (and want them to be considered for an award), you will have to submit a separate application for each of them.
p.govuk-hint
| You can create a reference, for example, 'Fibre optic device' so that it helps you and your collaborators to distinguish between different innovation applications. It will appear on the Applications page. Once chosen, your reference is permanent.
- if local_assigns[:award_type] == "innovation"
p.govuk-hint
| If you have more than one innovation (and want them to be considered for an award), you will have to submit a separate application for each of them.
p.govuk-hint
| Please create a reference. This will help you and your collaborators distinguish between different applications. Your reference will appear on the Applications page. Once chosen, it is permanent.
- elsif local_assigns[:award_type] == "mobility"
p.govuk-hint
| If you are applying for more than one Promoting Opportunity Award (through social mobility), you will have to submit a separate application for each.
p.govuk-hint
| You can create a reference, for example, 'Fibre optic device' so that it helps you and your collaborators to distinguish between different innovation applications. It will appear on the Applications page. Once chosen, your reference is permanent.

= text_field_tag :nickname, "", autocomplete: "off", required: true, type: "text", class: "govuk-input govuk-!-width-two-thirds", id: 'award-nickname'
= text_field_tag :nickname, "", autocomplete: "off", required: true, aria: { required: true }, type: "text", class: "govuk-input govuk-!-width-two-thirds", id: 'award-nickname'

0 comments on commit 2dfe317

Please sign in to comment.