{% extends "crud/list.html" %}
{% load i18n %}

{% block buttons %}{% endblock buttons %}

{% block content %}

  {% if not rows %}
    <p>{{ NO_ENTRIES_MSG }}</p>
  {% else %}
    <table class="table table-striped table-hover">
      <thead>
        <tr>
          {% for name in headers %}
          <th>{{ name }}</th>
          {% endfor %}
        </tr>
      </thead>
      <tbody>
        {% for value_list in rows %}
          <tr>
            {% for value, href in value_list %}
              <td>
                {% if href %}
                <a href="../habilitar/{{ value_list|first|last|cut:'/home/atendimento/usuario/' }}">{{ value }}</a>
                  {% else %}
                    {{ value|safe }}
                  {% endif %}
              </td>
            {% endfor %}
          </tr>
        {% endfor %}
      </tbody>
    </table>
  {% endif %}

  {% include "paginacao.html" %}
{% endblock content %}