diff --git a/app/components/job_application_review_component.rb b/app/components/job_application_review_component.rb
index c4b88a6c1dd..d113420c9f4 100644
--- a/app/components/job_application_review_component.rb
+++ b/app/components/job_application_review_component.rb
@@ -8,6 +8,8 @@ class JobApplicationReviewComponent < ReviewComponent
)
end)
+ attr_reader :job_application
+
def initialize(job_application, step_process:, allow_edit: nil, classes: [], html_attributes: {}, **)
super(
classes: classes,
diff --git a/app/controllers/publishers/vacancies/build_controller.rb b/app/controllers/publishers/vacancies/build_controller.rb
index 7987f6b98d3..be730bcd252 100644
--- a/app/controllers/publishers/vacancies/build_controller.rb
+++ b/app/controllers/publishers/vacancies/build_controller.rb
@@ -6,7 +6,7 @@ class Publishers::Vacancies::BuildController < Publishers::Vacancies::BaseContro
:pay_package, :important_dates, :start_date, :applying_for_the_job, :how_to_receive_applications, :application_link,
:application_form, :school_visits, :visa_sponsorship, :contact_details, :about_the_role, :include_additional_documents, :documents
- helper_method :form, :job_application_sample
+ helper_method :form
before_action :strip_checkbox_params, only: %i[update]
before_action :set_school_options
@@ -21,10 +21,6 @@ def show
render_wizard
end
- def job_application_sample
- @job_application_sample ||= SampleJobApplication.sample_job_application
- end
-
def update
if form.valid?
update_vacancy
diff --git a/app/helpers/job_applications_helper.rb b/app/helpers/job_applications_helper.rb
index 8b8396ebf11..73dd9aaeccf 100644
--- a/app/helpers/job_applications_helper.rb
+++ b/app/helpers/job_applications_helper.rb
@@ -152,4 +152,79 @@ def radio_button_legend_hint
}
end
end
+
+ def job_application_sample(vacancy) # rubocop: disable Metrics/MethodLength
+ JobApplication.new(
+ first_name: "Jane",
+ last_name: "Smith",
+ previous_names: "Churchill",
+ street_address: "1 House Street",
+ city: "Townington",
+ postcode: "AB1 2CD",
+ country: "England",
+ phone_number: "07123456789",
+ teacher_reference_number: "1234567",
+ qualified_teacher_status: "yes",
+ qualified_teacher_status_year: "2021",
+ email_address: "jane.smith@gmail.com",
+ support_needed: "yes",
+ support_needed_details: "I require a wheelchair accessible room for an interview",
+ close_relationships: "yes",
+ close_relationships_details: "Brother-in-law works at the trust",
+ personal_statement:
+ "As an English teacher, I am extremely passionate about instilling a love of reading and the written word into young people. I have been interested in a position at your school for a number of years and was thrilled to see this opportunity. I received my QTS in 2019, and have since worked as an English teacher in a secondary school in Sheffield.
+ In the classroom, I always strive to modify my approach to suit a range of abilities and motivation. By planning lessons around my students’ interests, I have been able to inspire even the most unmotivated readers into a love of books. For example, teaching descriptive writing by looking at their favourite sports and persuasive writing via marketing materials for their favourite shops. Furthermore, I have worked with dozens of students for whom English is their second language and nothing motivates me more than seeing that lightbulb moment happen when they can see their own progress. Last year, 95% of my GCSE students passed with grade 5 or above, and I have a proven track record for ensuring all of my KS3 students improve by at least two grades over years 7 to 9.
+ Moreover, I believe that good teaching doesn’t just happen in the classroom. I am a strong advocate for student wellbeing and pastoral support and have greatly enjoyed leading a morning form class for the last three years. Also, in my current school I have contributed to the English department by running a weekly book club, and organising several school trips to literary locations such as Haworth and Stratford Upon Avon, as well as visits to see plays on the curriculum.
+ I really resonate with your school’s ethos around inclusion and leaving no student behind, and I hope to be an asset to your English department, while continuing to grow as a teacher.",
+ employment_history_section_completed: true,
+ employments:
+ [
+ Employment.new(
+ organisation: "Townington Secondary School",
+ job_title: "KS3 Teaching Assistant",
+ main_duties: "Pastoral support for students. Managing student behaviour. Monitored students’ progress and gave feedback to teachers.",
+ reason_for_leaving: "Moving out of the area",
+ subjects: Faker::Educator.subject,
+ started_on: Faker::Date.in_date_period(year: 2016),
+ current_role: "no",
+ ended_on: Faker::Date.in_date_period(year: 2018),
+ ),
+ Employment.new(
+ organisation: "Sheffield Secondary School",
+ job_title: "English Teacher",
+ main_duties: "Planning and delivering English Literature and Language lessons ro a range of abilities across KS3 and GCSE to prepare them for exams. Contributing to the English department via extra curricular activities, organising trips, and running a reading club.",
+ reason_for_leaving: "No opportunities for career advancement",
+ subjects: Faker::Educator.subject,
+ started_on: Faker::Date.in_date_period(year: 2016),
+ current_role: "no",
+ ended_on: Faker::Date.in_date_period(year: 2018),
+ ),
+ ],
+ references:
+ [
+ Reference.new(name: "Laura Davison", organisation: "Townington Secondary School", relationship: "Line manager", email: "l.davison@english.townington.ac.uk"),
+ Reference.new(name: "John Thompson", organisation: "Sheffield Secondary School", relationship: "Line manager", email: "john.thompson@english.sheffield.ac.uk"),
+ ],
+ qualifications:
+ [
+ Qualification.new(category: :undergraduate, year: 2016, subject: "BA English Literature", grade: "2.1"),
+ Qualification.new(category: :other, year: 2019, subject: "PGCE English with QTS"),
+ Qualification.new(category: :a_level, year: 2012, qualification_results: [
+ QualificationResult.new(subject: "English Literature", grade: "A"),
+ QualificationResult.new(subject: "History", grade: "B"),
+ QualificationResult.new(subject: "French", grade: "A"),
+ ]),
+ Qualification.new(category: :gcse, year: 2010, qualification_results: [
+ QualificationResult.new(subject: "Maths", grade: "A"),
+ QualificationResult.new(subject: "English Literature", grade: "A"),
+ QualificationResult.new(subject: "English Language", grade: "B"),
+ QualificationResult.new(subject: "History", grade: "C"),
+ QualificationResult.new(subject: "French", grade: "A"),
+ QualificationResult.new(subject: "Music", grade: "B"),
+ QualificationResult.new(subject: "Geography", grade: "C"),
+ ]),
+ ],
+ vacancy: vacancy,
+ )
+ end
end
diff --git a/app/services/sample_job_application.rb b/app/services/sample_job_application.rb
deleted file mode 100644
index 01574921509..00000000000
--- a/app/services/sample_job_application.rb
+++ /dev/null
@@ -1,78 +0,0 @@
-class SampleJobApplication
- class << self
- def sample_job_application # rubocop: disable Metrics/MethodLength
- JobApplication.new(
- first_name: "Jane",
- last_name: "Smith",
- previous_names: "Churchill",
- street_address: "1 House Street",
- city: "Townington",
- postcode: "AB1 2CD",
- country: "England",
- phone_number: "07123456789",
- teacher_reference_number: "1234567",
- qualified_teacher_status: "yes",
- qualified_teacher_status_year: "2021",
- email_address: "jane.smith@gmail.com",
- support_needed: "yes",
- support_needed_details: "I require a wheelchair accessible room for an interview",
- close_relationships: "yes",
- close_relationships_details: "Brother-in-law works at the trust",
- personal_statement:
- "As an English teacher, I am extremely passionate about instilling a love of reading and the written word into young people. I have been interested in a position at your school for a number of years and was thrilled to see this opportunity. I received my QTS in 2019, and have since worked as an English teacher in a secondary school in Sheffield.
- In the classroom, I always strive to modify my approach to suit a range of abilities and motivation. By planning lessons around my students’ interests, I have been able to inspire even the most unmotivated readers into a love of books. For example, teaching descriptive writing by looking at their favourite sports and persuasive writing via marketing materials for their favourite shops. Furthermore, I have worked with dozens of students for whom English is their second language and nothing motivates me more than seeing that lightbulb moment happen when they can see their own progress. Last year, 95% of my GCSE students passed with grade 5 or above, and I have a proven track record for ensuring all of my KS3 students improve by at least two grades over years 7 to 9.
- Moreover, I believe that good teaching doesn’t just happen in the classroom. I am a strong advocate for student wellbeing and pastoral support and have greatly enjoyed leading a morning form class for the last three years. Also, in my current school I have contributed to the English department by running a weekly book club, and organising several school trips to literary locations such as Haworth and Stratford Upon Avon, as well as visits to see plays on the curriculum.
- I really resonate with your school’s ethos around inclusion and leaving no student behind, and I hope to be an asset to your English department, while continuing to grow as a teacher.",
- employment_history_section_completed: true,
- employments:
- [
- Employment.new(
- organisation: "Townington Secondary School",
- job_title: "KS3 Teaching Assistant",
- main_duties: "Pastoral support for students. Managing student behaviour. Monitored students’ progress and gave feedback to teachers.",
- reason_for_leaving: "Moving out of the area",
- subjects: Faker::Educator.subject,
- started_on: Faker::Date.in_date_period(year: 2016),
- current_role: "no",
- ended_on: Faker::Date.in_date_period(year: 2018),
- ),
- Employment.new(
- organisation: "Sheffield Secondary School",
- job_title: "English Teacher",
- main_duties: "Planning and delivering English Literature and Language lessons ro a range of abilities across KS3 and GCSE to prepare them for exams. Contributing to the English department via extra curricular activities, organising trips, and running a reading club.",
- reason_for_leaving: "No opportunities for career advancement",
- subjects: Faker::Educator.subject,
- started_on: Faker::Date.in_date_period(year: 2016),
- current_role: "no",
- ended_on: Faker::Date.in_date_period(year: 2018),
- ),
- ],
- references:
- [
- Reference.new(name: "Laura Davison", organisation: "Townington Secondary School", relationship: "Line manager", email: "l.davison@english.townington.ac.uk"),
- Reference.new(name: "John Thompson", organisation: "Sheffield Secondary School", relationship: "Line manager", email: "john.thompson@english.sheffield.ac.uk"),
- ],
- qualifications:
- [
- Qualification.new(category: 4, year: 2016, subject: "BA English Literature", grade: "2.1"),
- Qualification.new(category: 6, year: 2019, subject: "PGCE English with QTS"),
- Qualification.new(category: 2, year: 2012, qualification_results: [
- QualificationResult.new(subject: "English Literature", grade: "A"),
- QualificationResult.new(subject: "History", grade: "B"),
- QualificationResult.new(subject: "French", grade: "A"),
- ]),
- Qualification.new(category: 0, year: 2010, qualification_results: [
- QualificationResult.new(subject: "Maths", grade: "A"),
- QualificationResult.new(subject: "English Literature", grade: "A"),
- QualificationResult.new(subject: "English Language", grade: "B"),
- QualificationResult.new(subject: "History", grade: "C"),
- QualificationResult.new(subject: "French", grade: "A"),
- QualificationResult.new(subject: "Music", grade: "B"),
- QualificationResult.new(subject: "Geography", grade: "C"),
- ]),
- ],
- vacancy: Vacancy.new(job_roles: ["teacher"]),
- )
- end
- end
-end
diff --git a/app/views/jobseekers/job_applications/review/_professional_status.html.slim b/app/views/jobseekers/job_applications/review/_professional_status.html.slim
index 8b0e5fdfb3f..58d7dcf9af4 100644
--- a/app/views/jobseekers/job_applications/review/_professional_status.html.slim
+++ b/app/views/jobseekers/job_applications/review/_professional_status.html.slim
@@ -5,7 +5,7 @@
- s.with_row do |row|
- row.with_key text: t("helpers.label.jobseekers_job_application_personal_details_form.teacher_reference_number_review")
- - row.with_value text: job_application_jobseeker_profile_info(job_application)
+ - row.with_value text: job_application.teacher_reference_number
- s.with_row do |row|
- row.with_key text: t("helpers.legend.jobseekers_job_application_professional_status_form.statutory_induction_complete")
diff --git a/app/views/publishers/vacancies/build/applying_for_the_job.html.slim b/app/views/publishers/vacancies/build/applying_for_the_job.html.slim
index d712bc67a54..753a992400e 100644
--- a/app/views/publishers/vacancies/build/applying_for_the_job.html.slim
+++ b/app/views/publishers/vacancies/build/applying_for_the_job.html.slim
@@ -14,8 +14,8 @@
li = item
= govuk_details(summary_text: "See what an application form looks like") do
- = job_application_review(job_application_sample, step_process: {}, show_tracks: false, show_sidebar: false, allow_edit: false) do |r|
- - render "jobseekers/job_applications/job_application_review_sections", r: r, job_application: job_application_sample
+ = job_application_review(job_application_sample(vacancy), step_process: {}, show_tracks: false, show_sidebar: false, allow_edit: false) do |r|
+ - render "jobseekers/job_applications/job_application_review_sections", r: r, job_application: r.job_application
- if vacancy.listed? || current_organisation.local_authority?
= f.hidden_field :enable_job_applications