Skip to content

Commit d224f9c

Browse files
authored
convert job_title to govuk_text_field (#8496)
1 parent 7ad80d3 commit d224f9c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.simplecov

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ if ENV.fetch("COVERAGE", 0).to_i.positive?
7070
# However (possibly due to some residual random behaviour in test factories)
7171
# the line coverage needs to be set 0.02 below the reported value.
7272
# Normally this value needs to be 0.01 below the reported value due to rounding issues.
73-
minimum_coverage line: 97.43, branch: 87.35
74-
# Values from test run Mon 9th March 2026
75-
# 97.45% (12667 / 12998) -> 333 - 2 = 331 lines uncovered
76-
# 87.37% (2823 / 3231) -> 177 + 231 = 408 branches uncovered
73+
minimum_coverage line: 97.57, branch: 87.38
74+
# Values from test run Fri 6th March 2026
75+
# 97.7% (12705 / 13004) -> 308 + 53 = 361 lines uncovered
76+
# 87.47% (2828 / 3233) -> 179 + 233 = 412 branches uncovered
7777
end
7878
end

app/views/publishers/vacancies/build/job_title.html.slim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ end
88
= form_for form, url: wizard_path(current_step), method: :patch do |f|
99
= f.govuk_error_summary
1010

11-
= f.govuk_text_area :job_title,
11+
= f.govuk_text_field :job_title,
1212
label: { text: vacancy_form_page_heading(vacancy, step_process, back_path: back_path), tag: "h1", size: "l" },
1313
hint: { text: vacancy_job_title_form_hint_text(vacancy) },
14-
class: "govuk-input",
15-
max_chars: 75,
1614
required: true
1715

1816
= render "publishers/vacancies/vacancy_form_partials/submit", f: f

0 commit comments

Comments
 (0)