Skip to content

Commit c1070ca

Browse files
Add link to personal statement tool on job page
1 parent 359a17a commit c1070ca

File tree

6 files changed

+26
-7
lines changed

6 files changed

+26
-7
lines changed

app/assets/stylesheets/application.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ $govuk-assets-path: "/";
7070
@import 'components/supportal_table';
7171
@import 'components/supporting_document';
7272
@import 'components/tabs';
73+
@import 'components/sidebar-info-box';
7374
@import 'components/timeline';
7475
@import 'components/error';
7576
@import 'components/status_tag';
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@import 'base';
2+
3+
@mixin sidebar-info-box-styles {
4+
background-color: govuk-colour('light-grey');
5+
margin-bottom: govuk-spacing(5);
6+
padding: govuk-spacing(6);
7+
8+
@include govuk-media-query($until: tablet) {
9+
margin-top: govuk-spacing(5);
10+
}
11+
}
12+
13+
.sidebar-info-box {
14+
@include sidebar-info-box-styles;
15+
}

app/assets/stylesheets/components/timeline.scss

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
@import 'base';
2+
@import 'sidebar-info-box';
23

34
.timeline-component {
4-
background-color: govuk-colour('light-grey');
5-
margin-bottom: govuk-spacing(5);
6-
padding: govuk-spacing(6);
7-
8-
@include govuk-media-query($until: tablet) {
9-
margin-top: govuk-spacing(5);
10-
}
5+
@include sidebar-info-box-styles;
116

127
ul.timeline-component__items {
138
list-style-type: none;

app/views/vacancies/_show.html.slim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
.govuk-grid-row class="govuk-!-margin-top-6"
2929
.govuk-grid-column-one-third
3030
= render "vacancies/listing/key_dates_sidebar", vacancy: @vacancy, similar_jobs: @similar_jobs
31+
= render "vacancies/listing/personal_statement_help", vacancy: @vacancy
3132

3233
.govuk-grid-column-two-thirds
3334
= render "vacancies/listing/multi_school_banner", vacancy: @vacancy
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.sidebar-info-box
2+
h2.govuk-heading-s = t("jobs.personal_statement_help.heading")
3+
p.govuk-body = t("jobs.personal_statement_help.body_html", tool_link: govuk_link_to(t("jobs.personal_statement_help.tool_link_text"), "https://teaching-vacancies.preflight.site/?job=#{vacancy.slug}"))

config/locales/jobs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ en:
155155
similar_jobs:
156156
anchor_link_text: see similar jobs
157157
heading: Similar jobs nearby
158+
personal_statement_help:
159+
heading: Need help writing your personal statement for this role?
160+
body_html: Use the %{tool_link} to get AI-powered support in highlighting your skills and experience.
161+
tool_link_text: personal statement tool
158162
school_type: School type
159163
trust_type: Trust type
160164
expired_listing:

0 commit comments

Comments
 (0)