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 %>