From 32b472a3b84002168ade925a088e20e4e0656b34 Mon Sep 17 00:00:00 2001 From: Kat Date: Fri, 11 Oct 2024 10:40:39 +0100 Subject: [PATCH] Update hint text --- app/views/collection_resources/edit.html.erb | 6 ++++-- app/views/collection_resources/new.html.erb | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/collection_resources/edit.html.erb b/app/views/collection_resources/edit.html.erb index 7152cae82..936685e33 100644 --- a/app/views/collection_resources/edit.html.erb +++ b/app/views/collection_resources/edit.html.erb @@ -28,8 +28,10 @@ <% unless @collection_resource.mandatory %> <%= f.govuk_text_field :short_display_name, label: nil, - hint: { text: "This will be used in the download link on the homepage. Do not include the log type or collection year.
For example, if you enter “bulk upload change log”, the download link will say “Download the #{@collection_resource.log_type} bulk upload change log (#{text_year_range_format(@collection_resource.year)})”.".html_safe } %> - <% end %> + hint: { text: safe_join(["This will be used in the download link on the homepage. Do not include the log type or collection year.", + content_tag(:br), + "For example, if you enter “bulk upload change log”, the download link will say “Download the #{@collection_resource.log_type} bulk upload change log (#{text_year_range_format(@collection_resource.year)})”."]) } %> + <% end %> <%= f.govuk_submit resource_exists ? "Save changes" : "Upload" %> <%= govuk_button_link_to "Cancel", collection_resources_path, secondary: true %> diff --git a/app/views/collection_resources/new.html.erb b/app/views/collection_resources/new.html.erb index 4628a3869..43de37c04 100644 --- a/app/views/collection_resources/new.html.erb +++ b/app/views/collection_resources/new.html.erb @@ -23,7 +23,9 @@ <%= f.govuk_text_field :short_display_name, label: nil, - hint: { text: "This will be used in the download link on the homepage. Do not include the log type or collection year.
For example, if you enter “bulk upload change log”, the download link will say “Download the #{@collection_resource.log_type} bulk upload change log (#{text_year_range_format(@collection_resource.year)})”.".html_safe } %> + hint: { text: safe_join(["This will be used in the download link on the homepage. Do not include the log type or collection year.", + content_tag(:br), + "For example, if you enter “bulk upload change log”, the download link will say “Download the #{@collection_resource.log_type} bulk upload change log (#{text_year_range_format(@collection_resource.year)})”."]) } %> <%= f.govuk_submit "Add resource" %> <%= govuk_button_link_to "Cancel", collection_resources_path, secondary: true %>