Skip to content

Commit

Permalink
Merge pull request #2472 from DFE-Digital/AQTS-642-build-support-inte…
Browse files Browse the repository at this point in the history
…rface-locals-file

AQTS 642 support interface yaml file
  • Loading branch information
syed87 authored Oct 29, 2024
2 parents 9162e02 + 50483ac commit 71d83bd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 8 deletions.
10 changes: 2 additions & 8 deletions app/forms/support_interface/region_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,9 @@ class SupportInterface::RegionForm
validates :sanction_check, inclusion: { in: %w[online written none] }
validates :status_check, inclusion: { in: %w[online written none] }
validates :teaching_authority_emails_string,
presence: {
message: "You must provide an email for the teaching authority.",
},
presence: true,
if: :teaching_authority_requires_submission_email
validates :teaching_authority_name,
format: {
without: /\Athe.*\z/i,
message: "Teaching authority name shouldn't start with ‘the’.",
}
validates :teaching_authority_name, format: { without: /\Athe.*\z/i }
validates :teaching_authority_online_checker_url, url: { allow_blank: true }
validates :teaching_authority_provides_written_statement,
inclusion: {
Expand Down
36 changes: 36 additions & 0 deletions config/locales/support_interface.en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
en:
activemodel:
errors:
models:
support_interface/country_form:
attributes:
eligibility_enabled:
inclusion: You must select whether or not we accept applications from this country
eligibility_route:
inclusion: You must select an eligibility route
has_regions:
inclusion: You must select whether or not there are regions within in this country that have a different teaching authority or service journey
region_names:
blank: You must provide region names
support_interface/region_form:
attributes:
all_sections_necessary:
inclusion: Please select whether applicants need to complete all sections of the application form
requires_preliminary_check:
inclusion: Please select whether this region requires a preliminary check
sanction_check:
inclusion: Please select how sanctions will be checked
status_check:
inclusion: Please select how teacher status will be checked
teaching_authority_emails_string:
blank: You must provide an email for the teaching authority.
teaching_authority_name:
invalid: Teaching authority name shouldn't start with 'the'.
teaching_authority_online_checker_url:
url: Online checker website is not a valid URL
teaching_authority_provides_written_statement:
inclusion: Please select whether teaching authority only send the letter of professional standing (LOPS) directly to the TRA
work_history_section_to_omit:
inclusion: Please choose which sections will be removed
written_statement_optional:
inclusion: Please choose whether applicant can submit without uploading the written statement

0 comments on commit 71d83bd

Please sign in to comment.