<% content_for :header do %>
  <header class="container-fluid py-3 border-bottom sticky-top bg-light">
    <div class="row align-items-center justify-content-center">
      <div class="col-4 text-center">
        <h1 class="h4 m-0"><%= @account.name %></h1>
      </div>
    </div>
  </header>
<% end %>

<div class="border bg-white rounded shadow-sm pb-3 table-responsive">
  <table class="table table-striped tr-px-4 align-all-middle">
    <thead class="thead-light">
      <tr>
        <th><%= ContractTemplate.human_attribute_name(:name) %></th>
        <th></th>
      </tr>
    </thead>
    <tbody>
      <%= render @contract_templates %>
    </tbody>
  </table>
</div>

<div class="mt-3">
  <%= will_paginate @contract_templates %>
</div>
