Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference field [QA] #2977

Merged
merged 2 commits into from
Jun 24, 2024
Merged
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
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'
Loading