{% load i18n %}
<c-ui.fab-single-action
        url="{% url 'entity_add' %}"
        hx_target="#generic-offcanvas">
</c-ui.fab-single-action>
<div class="container">
  <div class="text-3xl font-bold font-mono w-full mb-3">
    {% spaceless %}
    <div>{% translate 'Entities' %}</div>
    {% endspaceless %}
  </div>

  <div class="card bg-base-100 shadow-xl">
    <div class="card-header bg-base-200 p-4 rounded-box">
      <div role="tablist" class="tabs tabs-border">
        <input type="radio" name="installment_plan_tabs" class="tab" aria-label="{% translate 'Active' %}"
               checked="checked"
               hx-get="{% url 'entities_table_active' %}" hx-trigger="load, click" hx-target="#entities-table"
               hx-indicator="#entities-table"/>
        <input type="radio" name="installment_plan_tabs" class="tab" aria-label="{% translate 'Archived' %}"
               hx-get="{% url 'entities_table_archived' %}" hx-trigger="click" hx-target="#entities-table"
               hx-indicator="#entities-table"/>
      </div>
    </div>
    <div class="card-body">
      <div id="entities-table" class="show-loading"></div>
    </div>
  </div>
</div>
