Skip to content

Commit

Permalink
Update support console for new teaching authority fields
Browse files Browse the repository at this point in the history
This updates the support console to allow viewing and editing the new
teaching authority fields which have been renamed.
  • Loading branch information
thomasleese committed Sep 5, 2023
1 parent 7c8d30b commit ef481e1
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<h2 class="govuk-heading-m">Additional 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>

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

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

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
<%= f.govuk_text_area :teaching_authority_emails_string, label: { text: "Email:" }, hint: { text: "One email per line (if more than one)" } %>
<%= f.govuk_text_area :teaching_authority_websites_string, label: { text: "Websites:" }, hint: { text: "One website per line (if more than one)" } %>
<%= f.govuk_text_field :teaching_authority_certificate, label: { text: "Name given to describe the Letter of Professional standing: " } %>
<%= f.govuk_text_area :other_information, label: { text: "Teaching authority other" } %>
<%= f.govuk_text_field :teaching_authority_online_checker_url, label: { text: "Online checker URL" } %>
15 changes: 11 additions & 4 deletions app/views/support_interface/countries/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,18 @@
<%= render "shared/support_interface/forms/requires_preliminary_check", f: %>
<% end %>

<%= render "shared/support_interface/forms/eligibility_checker", f: %>
<%= render "shared/support_interface/forms/teaching_authority_form_fields", f: %>
<%= render "shared/support_interface/forms/changes_to_eligible_page", f: %>
<%= f.govuk_collection_radio_buttons :eligibility_skip_questions,
[
OpenStruct.new(value: :false, label: "Standard – Asks 5 standard questions that most countries would need to be asked."),
OpenStruct.new(value: :true, label: "Reduced – Only asks if the applicant’s teaching qualification was completed in their country of recognition.")
],
:value,
:label,
legend: { text: "Eligibility checker" },
hint: { text: 'Which route will applicants take through the eligibility checker?' } %>

<%= f.govuk_text_area :qualifications_information, label: { text: 'Proof of qualifications' }, hint: { text: "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.’" }, rows: 5 %>
<%= render "shared/support_interface/forms/teaching_authority_form_fields", f: %>
<%= render "shared/support_interface/forms/additional_information", f: %>

<%= f.govuk_submit "Preview", name: "preview", value: "true" do %>
<%= f.govuk_submit "Save", name: "preview", value: "false", secondary: true %>
Expand Down
6 changes: 2 additions & 4 deletions app/views/support_interface/regions/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@
<%= f.govuk_radio_button :teaching_authority_requires_submission_email, 'no', label: { text: 'No' }%>
<% end %>

<%= render "shared/support_interface/forms/changes_to_eligible_page", f: %>
<%= render "shared/support_interface/forms/qualifications_information_form_fields", f: %>

<%= f.govuk_check_box :reduced_evidence_accepted, 1, 0, multiple: false, link_errors: true, small: true, label: { text: "Accept reduced evidence" } %>
<%= f.govuk_check_box :written_statement_optional, 1, 0, multiple: false, link_errors: true, small: true, label: { text: "Applicant can submit without uploading the written statement (if a written statement is requested)" } %>
<%= f.govuk_check_box :teaching_authority_provides_written_statement, 1, 0, multiple: false, link_errors: true, small: true, label: { text: "Will the teaching authority only send the letter of professional standing (LOPS) directly to the TRA?" } %>
<br>

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

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

0 comments on commit ef481e1

Please sign in to comment.