Skip to content

Commit

Permalink
Adds table header to assessor/form_answers#index
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Kirkham <[email protected]>
  • Loading branch information
TheDancingClown committed Nov 14, 2024
1 parent f0d64f2 commit cc3bff5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/assets/stylesheets/admin/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ input.form-control, select.form-control,
}
}

.qae-form {
.qae-form {
margin-bottom: 50px;
}

.section-contact-preferences .selectable {
cursor: auto;

input[type="checkbox"] {
margin-top: 10px;
}
Expand Down
6 changes: 5 additions & 1 deletion app/assets/stylesheets/admin/page-applications.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@
> tbody > tr:first-child > td {
padding-top: pxToRem(16);
}

> tbody > tr > .form_answer_select,
> thead > tr > .form_answer_select {
text-align: center !important;
}
}

.applications-table, .assessor-table {
Expand All @@ -153,7 +158,6 @@
td > a {
color: $blue-link-colour;
}

}

.nav-tabs.submitted-tabs {
Expand Down
2 changes: 1 addition & 1 deletion app/views/assessor/form_answers/_list_body.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ tbody
- FormAnswerDecorator.decorate_collection(@form_answers).each do |obj|
tr
- if current_subject.categories_as_lead.include?(category_picker.current_award_type)
td = check_box_tag :check, obj.id, false, class: "form-answer-check", id: "check_nomination_#{obj.id}", aria: { label: "Select nomination #{obj.id} for bulk action" }
td.form_answer_select = check_box_tag :check, obj.id, false, class: "form-answer-check", id: "check_nomination_#{obj.id}", aria: { label: "Select nomination #{obj.id} for bulk action" }

td.td-title
- unless obj.company_or_nominee_name.nil?
Expand Down
4 changes: 3 additions & 1 deletion app/views/assessor/form_answers/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ h1.admin-page-heading
thead
tr
- if current_subject.categories_as_lead.include?(category_picker.current_award_type)
th
th.form_answer_select
span.visuallyhidden
| Select
span.if-no-js-hide
= check_box_tag :check_all, "Check all", false, aria: { label: "Select all applications for bulk action" }
th.sortable width="250"
Expand Down

0 comments on commit cc3bff5

Please sign in to comment.