<header class=“header header–double”>

<h1><%= t('admin_nav.legal') %></h1>
<%= link_to t('create'), new_admin_legal_path, class: "btn btn--primary btn--large" %>

</header>

<section class=“section section–12 section–double”>

<table class="datatable table__icon--4">
  <thead>
    <tr class="table__head--wrap">
      <td class="table__item col col--1"> </td>
      <th class="table__head col col--1"><%= t('activerecord.attributes.legal.title') %></th>
      <th class="table__head col col--1"><%= t('activerecord.attributes.legal.is_visible') %> </th>
      <th class="table__head col col--1"><%= t('activerecord.attributes.legal.created_at') %> </th>
      <th class="table__head col col--1"><%= t('actions') %></th>
    </tr>
  </thead>

  <tbody class="sortable"  data-url='<%=sort_admin_legals_path %>' >
    <% @legals.each do |legal| %>
      <%= render "legal", legal: legal %>
    <% end %>
  </tbody>
</table>

</section>

<script> $(function(){ // init_datatable(“<%= I18n.locale %>”); }) </script>