diff --git a/app/forms/support_interface/editable_until_form.rb b/app/forms/support_interface/editable_until_form.rb index 7290920e559..f04b807ab4a 100644 --- a/app/forms/support_interface/editable_until_form.rb +++ b/app/forms/support_interface/editable_until_form.rb @@ -1,10 +1,10 @@ module SupportInterface class EditableUntilForm include ActiveModel::Model - attr_accessor :application_form, :audit_comment, :audit_comment_description + attr_accessor :application_form, :audit_comment, :audit_comment_description, :policy_confirmation attr_writer :sections, :editable_until - validates :audit_comment, presence: true + validates :audit_comment, :policy_confirmation, presence: true validates_with ZendeskUrlValidator def non_editable_sections diff --git a/app/views/support_interface/application_forms/editable_extension/edit.html.erb b/app/views/support_interface/application_forms/editable_extension/edit.html.erb index 5164a6ea687..886858aea44 100644 --- a/app/views/support_interface/application_forms/editable_extension/edit.html.erb +++ b/app/views/support_interface/application_forms/editable_extension/edit.html.erb @@ -14,6 +14,10 @@ <%= f.govuk_text_field :audit_comment, label: { text: 'Zendesk ticket', size: 'm' } %> <%= f.govuk_text_field :audit_comment_description, label: { text: 'Why are you making this application editable? (optional)', size: 'm' }, hint: { text: 'This will appear in the audit log alongside this change.' } %> + <%= f.govuk_check_boxes_fieldset :policy_confirmation, legend: nil do %> + <%= f.govuk_check_box :policy_confirmation, true, multiple: false, label: { text: 'I have spoken to and received confirmation from the Policy team to action this request.' }, link_errors: true %> + <% end %> + <%= f.govuk_submit 'Update' %> diff --git a/config/locales/support_interface/support_interface.yml b/config/locales/support_interface/support_interface.yml index 5c7360271a6..547cf936862 100644 --- a/config/locales/support_interface/support_interface.yml +++ b/config/locales/support_interface/support_interface.yml @@ -329,3 +329,5 @@ en: audit_comment: blank: Add a link to the Zendesk ticket invalid: Enter a valid Zendesk ticket URL + policy_confirmation: + blank: Select if you have received Policy confirmation