Browse Source

Merge pull request #504 from communitiesuk/bug/cldc-1174

cldc-1174, cldc-1184: fix table semantics and markup
pull/520/head
Kidd Hustle 3 years ago committed by GitHub
parent
commit
e0bbcbb66b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      app/views/case_logs/_log_list.html.erb

12
app/views/case_logs/_log_list.html.erb

@ -1,12 +1,10 @@
<figure class="app-figure"> <table class="govuk-table">
<figcaption id="<%= title.dasherize %>" class="app-figure__caption"> <caption class="govuk-!-text-align-left govuk-!-margin-top-4 govuk-!-margin-bottom-4">
<span class="govuk-!-margin-right-4"> <span class="govuk-!-margin-right-4">
<strong><%= pagy.count %></strong> total <%= title.downcase %> <strong><%= pagy.count %></strong> total <%= title.downcase %>
</span> </span>
<%= govuk_link_to "Download (CSV)", "/logs.csv", type: "text/csv" %> <%= govuk_link_to "Download (CSV)", "/logs.csv", type: "text/csv" %>
</figcaption> </caption>
<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>">
<table class="govuk-table">
<thead class="govuk-table__head"> <thead class="govuk-table__head">
<tr class="govuk-table__row"> <tr class="govuk-table__row">
<th class="govuk-table__header" scope="col">Log</th> <th class="govuk-table__header" scope="col">Log</th>
@ -56,6 +54,4 @@
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
</section>
</figure>

Loading…
Cancel
Save