Skip to content

Commit

Permalink
Merge pull request #822 from DFE-Digital/bulk-search-fixes
Browse files Browse the repository at this point in the history
Bulk search results update
  • Loading branch information
felixclack authored Sep 11, 2024
2 parents e998fc7 + 6235bd8 commit 56b7af2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/check_records/bulk_searches/create.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<% end %>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="govuk-grid-column-full">
<h1 class="govuk-heading-l"><%= pluralize(@total, 'teacher record') %> found</h1>
<%= govuk_tabs do |tabs|
if @results.any?
Expand Down
4 changes: 3 additions & 1 deletion app/views/check_records/search/_results_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
body.with_row do |row|
row.with_cell(text: govuk_link_to(teacher.name, check_records_teacher_path(SecureIdentifier.encode(teacher.trn)), class: 'govuk-link--no-visited-state govuk-!-font-weight-bold'))
row.with_cell(text: teacher.trn)
row.with_cell(text: teacher.restriction_status)
row.with_cell(
text: teacher.restriction_status == 'Restriction' ? govuk_tag(text: teacher.restriction_status, colour: 'red') : teacher.restriction_status
)
row.with_cell(text: teacher.teaching_status)
row.with_cell(text: teacher.induction_status)
end
Expand Down

0 comments on commit 56b7af2

Please sign in to comment.