From ded5f225cc7bb672108250d4d03960fae06518f7 Mon Sep 17 00:00:00 2001 From: Brett McHargue Date: Wed, 21 Feb 2024 13:44:32 +0000 Subject: [PATCH] Quick update to increase character limits on inputs (#709) * Quick update to increase character limits on inputs * Fix delete of content page version --- app/views/admin/content_blocks/_form.html.erb | 4 ++-- .../admin/content_page_versions/_form.html.erb | 10 +++++----- app/views/admin/content_pages/_form.html.erb | 14 +++++++------- .../content_pages/_table_of_draft_versions.erb | 2 +- app/views/admin/users/edit.html.erb | 2 +- spec/models/web/resource_spec.rb | 2 ++ terraform-azure/terraform-azure-web/appgateway.tf | 4 ++++ 7 files changed, 22 insertions(+), 16 deletions(-) diff --git a/app/views/admin/content_blocks/_form.html.erb b/app/views/admin/content_blocks/_form.html.erb index 9aa48003..919ffcd2 100644 --- a/app/views/admin/content_blocks/_form.html.erb +++ b/app/views/admin/content_blocks/_form.html.erb @@ -6,11 +6,11 @@ <%= form.govuk_error_summary order: %i[name description markdown] %>
- <%= form.govuk_text_field :name, label: {text: "Name - this should be provided by the developers, it refers to part of the fixed pages"}, disabled: content_block&.id, 'data-character-counter-target': 'input', maxlength: '254', hint: {text: "

There are remaining characters in the name.

".html_safe} %> + <%= form.govuk_text_field :name, label: {text: "Name - this should be provided by the developers, it refers to part of the fixed pages"}, disabled: content_block&.id, 'data-character-counter-target': 'input', maxlength: '10000', hint: {text: "

There are remaining characters in the name.

".html_safe} %>
- <%= form.govuk_text_field :description, label: {text: "Description - where does this appear in the site ?"}, 'data-character-counter-target': 'input', maxlength: '254', hint: {text: "

There are remaining characters in the description.

".html_safe} %> + <%= form.govuk_text_field :description, label: {text: "Description - where does this appear in the site ?"}, 'data-character-counter-target': 'input', maxlength: '10000', hint: {text: "

There are remaining characters in the description.

".html_safe} %>