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

Loading…
Cancel
Save