From 65287774034bac5f3dba5b9e81ed6cc67cca0441 Mon Sep 17 00:00:00 2001 From: kiddhustle Date: Thu, 28 Apr 2022 17:29:56 +0100 Subject: [PATCH] CLDC-1184: re-add tabindex to the logs table --- app/frontend/styles/_figure.scss | 10 --- app/frontend/styles/application.scss | 1 - app/views/case_logs/_log_list.html.erb | 108 +++++++++++++------------ 3 files changed, 55 insertions(+), 64 deletions(-) delete mode 100644 app/frontend/styles/_figure.scss diff --git a/app/frontend/styles/_figure.scss b/app/frontend/styles/_figure.scss deleted file mode 100644 index f1a895dfd..000000000 --- a/app/frontend/styles/_figure.scss +++ /dev/null @@ -1,10 +0,0 @@ -.app-figure { - margin: 0; -} - -.app-figure__caption { - @include govuk-font($size: 19); - border-top: 1px solid $govuk-border-colour; - margin-bottom: govuk-spacing(6); - padding-top: govuk-spacing(4); -} diff --git a/app/frontend/styles/application.scss b/app/frontend/styles/application.scss index 9d1103d56..abe376e99 100644 --- a/app/frontend/styles/application.scss +++ b/app/frontend/styles/application.scss @@ -18,7 +18,6 @@ $govuk-new-link-styles: true; @import "button"; @import "card"; @import "document-list"; -@import "figure"; @import "filter"; @import "filter-layout"; @import "header"; diff --git a/app/views/case_logs/_log_list.html.erb b/app/views/case_logs/_log_list.html.erb index 277997ac6..d2dd66b8c 100644 --- a/app/views/case_logs/_log_list.html.erb +++ b/app/views/case_logs/_log_list.html.erb @@ -1,57 +1,59 @@ - - - - - - - - - - - <% if current_user.support? %> - - - <% end %> - - - - <% case_logs.map do |log| %> - - - - - - - - <% if current_user.support? %> +
+
- - <%= pagy.count %> total <%= title.downcase %> - - <%= govuk_link_to "Download (CSV)", "/logs.csv", type: "text/csv" %> -
LogTenantPropertyTenancy startsLog createdCompletedOwning organisationManaging organisation
- <%= govuk_link_to log.id, case_log_path(log) %> - - <%= log.tenant_code? ? log.tenant_code : "–" %> - - <%= log.propcode? ? log.propcode : "–" %> - - <%= log.startdate.present? ? log.startdate.to_formatted_s(:govuk_date) : "–" %> - - <%= log.created_at.to_formatted_s(:govuk_date) %> - - <%= govuk_tag( - colour: log.status == "completed" ? "blue" : "grey", - text: log.status.humanize, - ) %> -
+ + + + + + + + + + <% if current_user.support? %> + + + <% end %> + + + + <% case_logs.map do |log| %> + + + + + <%= log.created_at.to_formatted_s(:govuk_date) %> + + + <% if current_user.support? %> + + + <% end %> + <% end %> - - <% end %> - -
+ + <%= pagy.count %> total <%= title.downcase %> + + <%= govuk_link_to "Download (CSV)", "/logs.csv", type: "text/csv" %> +
LogTenantPropertyTenancy startsLog createdCompletedOwning organisationManaging organisation
+ <%= govuk_link_to log.id, case_log_path(log) %> + + <%= log.tenant_code? ? log.tenant_code : "–" %> + + <%= log.propcode? ? log.propcode : "–" %> + - <%= log.owning_organisation.name %> + <%= log.startdate.present? ? log.startdate.to_formatted_s(:govuk_date) : "–" %> - <%= log.managing_organisation.name %> - + <%= govuk_tag( + colour: log.status == "completed" ? "blue" : "grey", + text: log.status.humanize, + ) %> + + <%= log.owning_organisation.name %> + + <%= log.managing_organisation.name %> +
+ + +