Skip to content

Commit

Permalink
Reorder support console fields
Browse files Browse the repository at this point in the history
This moves around a number of fields so it matches the design. There
shouldn't be any functional changes.
  • Loading branch information
thomasleese committed Sep 12, 2023
1 parent 38b30c5 commit 30e4e0d
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 48 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<h2 class="govuk-heading-m">Additional information</h2>
<h2 class="govuk-heading-m">Additional content information</h2>

<%= f.govuk_fieldset legend: { text: "Proof of qualifications", size: "s" } do %>
<p class="govuk-hint">Example: ‘We cannot accept the National Certificate in Education (NCE) or the Teachers Certificate Grade II from Nigeria, as these do not meet the required level.’</p>
<p class="govuk-body">Example: ‘We cannot accept the National Certificate in Education (NCE) or the Teachers Certificate Grade II from Nigeria, as these do not meet the required level.’</p>

<%= f.govuk_text_area :qualifications_information, label: { text: "Qualifications" }, rows: 5 %>
<% end %>

<%= f.govuk_fieldset legend: { text: "Proof that you’re recognised as a teacher", size: "s" } do %>
<p class="govuk-hint">Example: ‘TRCN will charge you a fee of ₦60,000 for providing the Letter of Professional standing. They’ll also need your QTS application reference number, as well as copies of your teaching documents.’</p>
<p class="govuk-body">Example: ‘TRCN will charge you a fee of ₦60,000 for providing the Letter of Professional standing. They’ll also need your QTS application reference number, as well as copies of your teaching documents.’</p>

<%= f.govuk_text_area :sanction_information, label: { text: "Sanction" }, rows: 5 %>
<%= f.govuk_text_area :status_information, label: { text: "Status" }, rows: 5 %>
<%= f.govuk_text_area :other_information, label: { text: "Other" }, rows: 5 %>
<%= f.govuk_text_area :sanction_information, label: { text: "For sanctions" }, rows: 5 %>
<%= f.govuk_text_area :status_information, label: { text: "For statuses" }, rows: 5 %>
<%= f.govuk_text_area :other_information, label: { text: "For other" }, rows: 5 %>
<% end %>
95 changes: 53 additions & 42 deletions app/views/support_interface/regions/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@

<h1 class="govuk-heading-l"><%= CountryName.from_region(@region) %></h1>

<%= f.govuk_collection_radio_buttons :application_form_skip_work_history,
[
OpenStruct.new(value: :true, label: "Yes"),
OpenStruct.new(value: :false, label: "No")
],
:value,
:label,
legend: { text: "Skip work history?" } %>

<%= f.govuk_collection_radio_buttons :requires_preliminary_check,
[
OpenStruct.new(value: :true, label: "Yes"),
Expand All @@ -23,18 +14,57 @@
:label,
legend: { text: "Will applications be subject to a preliminary check?" } %>

<%= f.govuk_fieldset legend: { text: "Application form changes" } do %>
<%= f.govuk_collection_radio_buttons :application_form_skip_work_history,
[
OpenStruct.new(value: :true, label: "Yes"),
OpenStruct.new(value: :false, label: "No")
],
:value,
:label,
legend: { text: "Remove work history?", size: "s" } %>

<%= f.govuk_collection_radio_buttons :reduced_evidence_accepted,
[
OpenStruct.new(value: :true, label: "Yes"),
OpenStruct.new(value: :false, label: "No")
],
:value,
:label,
legend: { text: "Remove work history contact details and allow applicant to choose any SELT provider to prove their English proficiency?", size: "s" },
hint: { text: "Allows QTS to be awarded without any work references being provided." } %>

<%= f.govuk_collection_radio_buttons :written_statement_optional,
[
OpenStruct.new(value: :true, label: "Yes"),
OpenStruct.new(value: :false, label: "No")
],
:value,
:label,
legend: { text: "Applicant can submit without uploading the written statement?", size: "s" },
hint: { text: "Only applies if a written statement is requested." } %>
<% end %>

<%= f.govuk_fieldset legend: { text: "Teacher status and sanctions checks" } do %>
<%= f.govuk_collection_select :status_check, [
OpenStruct.new(id: 'online', name: 'Online'),
OpenStruct.new(id: 'written', name: 'Written'),
OpenStruct.new(id: 'none', name: 'None')
], :id, :name, label: { text: "How will teacher status be checked?", size: "s" } %>
<%= f.govuk_collection_select :status_check,
[
OpenStruct.new(id: "online", name: "Online"),
OpenStruct.new(id: "written", name: "Written"),
OpenStruct.new(id: "none", name: "None")
],
:id,
:name,
label: { text: "How will teacher status be checked?", size: "s" } %>

<%= f.govuk_collection_select :sanction_check, [
OpenStruct.new(id: 'online', name: 'Online'),
OpenStruct.new(id: 'written', name: 'Written'),
OpenStruct.new(id: 'none', name: 'None')
], :id, :name, label: { text: "How will sanctions be checked?", size: "s" } %>
<%= f.govuk_collection_select :sanction_check,
[
OpenStruct.new(id: "online", name: "Online"),
OpenStruct.new(id: "written", name: "Written"),
OpenStruct.new(id: "none", name: "None")
],
:id,
:name,
label: { text: "How will sanctions be checked?", size: "s" } %>
<% end %>

<%= f.govuk_fieldset legend: { text: "Teaching authority details" } do %>
Expand All @@ -45,44 +75,25 @@
<%= f.govuk_text_field :teaching_authority_certificate, label: { text: "Name given to describe the Letter of Professional standing" } %>
<%= f.govuk_text_field :teaching_authority_online_checker_url, label: { text: "Online checker website" } %>

<%= f.govuk_collection_radio_buttons :teaching_authority_requires_submission_email,
<%= f.govuk_collection_radio_buttons :teaching_authority_provides_written_statement,
[
OpenStruct.new(value: :true, label: "Yes"),
OpenStruct.new(value: :false, label: "No")
],
:value,
:label,
legend: { text: "Automatically notify the teaching authority (via email) every time a QTS application is submitted?", size: "s" } %>
legend: { text: "Will the teaching authority only send the letter of professional standing (LOPS) directly to the TRA?", size: "s" } %>

<%= f.govuk_collection_radio_buttons :teaching_authority_provides_written_statement,
<%= f.govuk_collection_radio_buttons :teaching_authority_requires_submission_email,
[
OpenStruct.new(value: :true, label: "Yes"),
OpenStruct.new(value: :false, label: "No")
],
:value,
:label,
legend: { text: "Will the teaching authority only send the letter of professional standing (LOPS) directly to the TRA?", size: "s" } %>
legend: { text: "Automatically notify the teaching authority (via email) every time a QTS application is submitted?", size: "s" } %>
<% end %>

<%= f.govuk_collection_radio_buttons :reduced_evidence_accepted,
[
OpenStruct.new(value: :true, label: "Yes"),
OpenStruct.new(value: :false, label: "No")
],
:value,
:label,
legend: { text: "Accept reduced evidence?" } %>

<%= f.govuk_collection_radio_buttons :written_statement_optional,
[
OpenStruct.new(value: :true, label: "Yes"),
OpenStruct.new(value: :false, label: "No")
],
:value,
:label,
legend: { text: "Applicant can submit without uploading the written statement?" },
hint: { text: "Only applies if a written statement is requested." } %>

<%= render "shared/support_interface/country_region_information_fields", f: %>

<%= f.govuk_submit "Preview", name: "preview", value: "true" do %>
Expand Down

0 comments on commit 30e4e0d

Please sign in to comment.