Skip to content

Commit

Permalink
Introduce additional policy confirmation checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-G committed Nov 14, 2023
1 parent 0472e6a commit bd8a95f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/forms/support_interface/editable_until_form.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' %>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions config/locales/support_interface/support_interface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bd8a95f

Please sign in to comment.