-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: start moving bulk assing out of js modules
- Loading branch information
Showing
16 changed files
with
4,501 additions
and
3,688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
app/views/admin/form_answers/_bulk_assignment_button_bottom.html.slim
This file was deleted.
Oops, something went wrong.
14 changes: 5 additions & 9 deletions
14
app/views/admin/form_answers/_bulk_assignment_button_top.html.slim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
- if show_bulk_lieutenants_assignment? | ||
|
||
.if-no-js-hide | ||
p.govuk-body.bulk-assignment-help | ||
| Select groups from the list below to bulk assign to Lord Lieutenancy office or national assessor sub-groups. | ||
.bulk-assignment-container | ||
p.govuk-body.nominations-checked-total | ||
button.govuk-button.bulk-assign-lieutenants-link type="button" Bulk assign to Lord Lieutenancy office | ||
|
||
button.govuk-button.bulk-assign-assessors-link type="button" Bulk assign to national assessor sub-group | ||
.bulk-assignment-container | ||
p.govuk-body.nominations-checked-total aria-live='polite' | ||
= f.submit "Bulk assign to Lord Lieutenancy office", class: "govuk-button bulk-assign-lieutenants-link", name: "bulk_assign_lieutenants" | ||
= f.submit "Bulk assign to national assessor sub-group", class: "govuk-button bulk-assign-assessors-link", name: "bulk_assign_assessors" | ||
= f.submit "Bulk assign eligibility status", class: "govuk-button bulk-assign-eligibility-link", name: "bulk_assign_eligibility" |
54 changes: 0 additions & 54 deletions
54
app/views/admin/form_answers/_bulk_assignment_modal.html.slim
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
app/views/admin/form_answers/bulk_assign_assessors.html.slim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
h3.govuk-heading-m | ||
| Bulk assign groups to national assessor sub-group | ||
|
||
= form_for [namespace_name, @form] do |f| | ||
= flash[:error] | ||
.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" | ||
|
||
= f.text_field :form_answer_ids, class: "if-js-hide visuallyhidden" | ||
|
||
.govuk-button-group | ||
= f.submit "Bulk assign groups to national assessor sub-group", class: "govuk-button" | ||
= link_to "Cancel", [namespace_name, :form_answers], class: "govuk-link" |
17 changes: 17 additions & 0 deletions
17
app/views/admin/form_answers/bulk_assign_lieutenants.html.slim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
h3.govuk-heading-m | ||
| Bulk assign groups to Lord Lieutenancy office | ||
|
||
= form_for [namespace_name, @form] do |f| | ||
= flash[:error] | ||
.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" | ||
|
||
= f.text_field :form_answer_ids, class: "if-js-hide visuallyhidden" | ||
|
||
.govuk-button-group | ||
= f.submit "Bulk assign groups to Lord Lieutenancy office", class: "govuk-button" | ||
= link_to "Cancel", [namespace_name, :form_answers], class: "govuk-link" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.