Skip to content

Commit 3e0d380

Browse files
Add ats notice on sign in
1 parent e40aa89 commit 3e0d380

17 files changed

+221
-87
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class Publishers::AtsInterstitialsController < Publishers::BaseController
2+
def show
3+
@school = current_organisation
4+
@variant = @school.ats_interstitial_variant
5+
end
6+
7+
def update
8+
if current_publisher.update(acknowledged_ats_and_religious_form_interstitial: true)
9+
redirect_to organisation_jobs_with_type_path
10+
else
11+
render :show
12+
end
13+
end
14+
end
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
module Publishers
2-
class BaseController < ApplicationController
3-
include ReturnPathTracking
2+
class Publishers::BaseController < ApplicationController
43
include LoginRequired
54

65
before_action :check_terms_and_conditions
7-
before_action :check_candidate_profiles_interstitial_acknowledged
6+
before_action :check_ats_interstitial_acknowledged
87

98
helper_method :current_user
109

1110
def check_terms_and_conditions
1211
redirect_to publishers_terms_and_conditions_path unless current_publisher.accepted_terms_at?
1312
end
1413

15-
def check_candidate_profiles_interstitial_acknowledged
16-
redirect_to publishers_candidate_profiles_interstitial_path unless current_publisher.nil? || current_publisher.acknowledged_candidate_profiles_interstitial?
14+
def check_ats_interstitial_acknowledged
15+
return if current_publisher.nil? || current_publisher.acknowledged_ats_and_religious_form_interstitial?
16+
17+
return if controller_path == "publishers/ats_interstitials"
18+
19+
redirect_to publishers_ats_interstitial_path
1720
end
1821
end
1922
end

app/controllers/publishers/candidate_profiles_interstitials_controller.rb

Lines changed: 0 additions & 8 deletions
This file was deleted.

app/controllers/publishers/terms_and_conditions_controller.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
class Publishers::TermsAndConditionsController < Publishers::BaseController
22
skip_before_action :check_terms_and_conditions, only: %i[show update]
3-
skip_before_action :check_candidate_profiles_interstitial_acknowledged, only: %i[show update]
43

54
def show
65
@terms_and_conditions_form = Publishers::TermsAndConditionsForm.new
@@ -10,7 +9,6 @@ def update
109
@terms_and_conditions_form = Publishers::TermsAndConditionsForm.new(terms_params)
1110
if @terms_and_conditions_form.valid?
1211
current_publisher.update(accepted_terms_at: Time.current)
13-
redirect_to publishers_candidate_profiles_interstitial_path
1412
else
1513
render :show
1614
end

app/models/school.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ def faith_school?
6565
religious_character.present?
6666
end
6767

68+
def catholic_school?
69+
religious_character&.include?("Catholic") || false
70+
end
71+
6872
def school_type
6973
read_attribute(:school_type).singularize
7074
end
@@ -90,4 +94,14 @@ def all_organisations
9094
def all_organisation_ids
9195
[id]
9296
end
97+
98+
def ats_interstitial_variant
99+
if catholic_school?
100+
"catholic"
101+
elsif faith_school?
102+
"other_faith"
103+
else
104+
"non_faith"
105+
end
106+
end
93107
end
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
- scope = "ats_interstitials.#{@variant}"
2+
- content_for :page_title_prefix, t("ats_interstitials.shared.page_title")
3+
4+
.govuk-grid-row
5+
.govuk-grid-column-two-thirds
6+
h1.govuk-heading-xl = t("ats_interstitials.shared.page_title")
7+
p.govuk-body = t("ats_interstitials.shared.intro")
8+
9+
h2.govuk-heading-m = t("ats_interstitials.shared.ats_list_header")
10+
ul.govuk-list.govuk-list--bullet
11+
- t("ats_interstitials.shared.ats_points").each do |item|
12+
li = item
13+
14+
- if I18n.exists?("#{scope}.faith_paragraph")
15+
p.govuk-body = t("#{scope}.faith_paragraph")
16+
17+
- if I18n.exists?("#{scope}.faith_intro")
18+
p.govuk-body = t("#{scope}.faith_intro")
19+
20+
- if I18n.exists?("#{scope}.faith_points")
21+
ul.govuk-list.govuk-list--bullet
22+
- t("#{scope}.faith_points").each do |item|
23+
li = item
24+
25+
p.govuk-body
26+
= govuk_link_to t("ats_interstitials.shared.guidance_link_text"),
27+
post_path(section: "get-help-hiring", subcategory: "how-to-create-job-listings-and-accept-applications", post_name: "accepting-job-applications-on-teaching-vacancies")
28+
29+
.govuk-button-group
30+
= govuk_button_to "Continue", publishers_ats_interstitial_path, method: :patch, id: "acknowledge-interstitial-button"

app/views/publishers/candidate_profiles_interstitials/show.html.slim

Lines changed: 0 additions & 18 deletions
This file was deleted.

config/analytics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ shared:
292292
- id
293293
- oid
294294
- accepted_terms_at
295-
- acknowledged_candidate_profiles_interstitial
295+
- acknowledged_ats_and_religious_form_interstitial
296296
- email
297297
- email_opt_out
298298
- last_activity_at

config/locales/en.yml

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -398,17 +398,34 @@ en:
398398
show_count: Applications (%{count})
399399
statistics: Statistics
400400

401-
candidate_profiles_interstitials:
402-
page_title: You can now view candidate profiles and invite them to apply to jobs
403-
intro: A candidate's profile includes their job preferences, experience and qualifications.
404-
list_header: "These candidates have specified:"
405-
page_description_items:
406-
- "that they're able to travel to your school"
407-
- "that they're interested in an education phase that matches your school"
408-
outro: You'll also be notified about any new candidate profiles that match your job listings.
409-
button_text: View candidate profiles
410-
skip_text: Skip to job listings
411-
401+
ats_interstitials:
402+
shared:
403+
page_title: "You can now use our Applicant Tracking System (ATS)"
404+
intro: "We have launched our Applicant Tracking System (ATS). This means that when you use our Keeping Children Safe in Education (KCSIE) compliant application form, you can manage applications from the beginning to the end of the hiring process."
405+
ats_list_header: "Using our ATS, you can:"
406+
ats_points:
407+
- "update multiple applications at once"
408+
- "communicate with jobseekers"
409+
- "keep track of interviews"
410+
- "record notes on progress for colleagues"
411+
guidance_link_text: "Read our How to accept job applications guidance to find out more."
412+
non_faith:
413+
# (Only non-shared specific text here if any)
414+
catholic:
415+
faith_paragraph: "You now also have the option to use our Catholic Education Service (CES) approved online application form."
416+
faith_intro: "The form asks applicants about their:"
417+
faith_points:
418+
- "religion"
419+
- "place of worship"
420+
- "baptism"
421+
- "religious referees"
422+
other_faith:
423+
faith_paragraph: "We offer a version of the form that asks applicants questions about religion. When you use this form, it gives applicants an opportunity to tell you:"
424+
faith_points:
425+
- "if they have a religious denomination or faith"
426+
- "how they will meet your school’s ethos and aims"
427+
- "their religious reference details"
428+
- "their place of worship"
412429
candidate_profiles_banner:
413430
intro: 'Candidate profiles are a new feature that allows schools to contact you about relevant jobs. With a profile you can:'
414431
summary_list:

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
get "schools/preview", to: "/publishers/organisations/schools#preview"
262262
end
263263
resource :terms_and_conditions, only: %i[show update]
264-
resource :candidate_profiles_interstitial, only: %i[show]
264+
resource :ats_interstitial, only: %i[show update]
265265
get :remove_organisation_filter, to: "publisher_preferences#remove_organisation"
266266
end
267267

0 commit comments

Comments
 (0)