Skip to content

Commit

Permalink
tweak styles for bulk assignment pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamfall committed Sep 26, 2024
1 parent 443df35 commit 4223b2c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
19 changes: 10 additions & 9 deletions app/views/admin/form_answers/bulk_assign_assessors.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ h3.govuk-heading-m
| Bulk assign groups to national assessor sub-group

= form_for [namespace_name, @form] do |f|
.govuk-form-group.primary-subgroup-group
= f.label :sub_group, "Select national assessor sub-group", class: "govuk-label"
= f.select :sub_group,
Assessor.sub_group.options,
{ include_blank: true },
class: "govuk-select custom-select"
- if @form.errors[:sub_group].any?
.govuk-error-message
| Please select a national assessor sub-group
.govuk-grid-row
.govuk-form-group.primary-subgroup-group.govuk-grid-column-one-third
= f.label :sub_group, "Select national assessor sub-group", class: "govuk-label"
= f.select :sub_group,
Assessor.sub_group.options,
{ include_blank: true },
class: "govuk-select custom-select"
- if @form.errors[:sub_group].any?
.govuk-error-message
| Please select a national assessor sub-group

= f.hidden_field :search_id, value: params[:search_id], name: :search_id
= f.hidden_field :year, value: params[:year], name: :year
Expand Down
21 changes: 12 additions & 9 deletions app/views/admin/form_answers/bulk_assign_lieutenants.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,21 @@ h3.govuk-heading-m
| Please select the Lord Lieutenancy office that you would like to assign selected groups to.

= form_for [namespace_name, @form] do |f|
.govuk-form-group.primary-lieutenant-group
= f.label :ceremonial_county_id, "Select Lord Lieutenancy office", class: "govuk-label"
= f.select :ceremonial_county_id,
CeremonialCounty.ordered.pluck(:name, :id),
{ include_blank: true },
class: "govuk-select custom-select"
.govuk-grid-row

.govuk-form-group.primary-lieutenant-group.govuk-grid-column-one-third
= f.label :ceremonial_county_id, "Select Lord Lieutenancy office", class: "govuk-label"
= f.select :ceremonial_county_id,
CeremonialCounty.ordered.pluck(:name, :id),
{ include_blank: true },
class: "govuk-select custom-select"
- if @form.errors[:ceremonial_county_id].any?
.govuk-error-message
| Please select a Lord Lieutenancy office

= f.hidden_field :search_id, value: params[:search_id], name: :search_id
= f.hidden_field :year, value: params[:year], name: :year

- if @form.errors[:ceremonial_county_id].any?
.govuk-error-message
| Please select a Lord Lieutenancy office

- if @form.form_answer_ids.present?
= f.hidden_field :form_answer_ids, value: @form.form_answer_ids.join(",")
Expand Down

0 comments on commit 4223b2c

Please sign in to comment.