{% extends 'django_spire/card/title_card.html' %}

{% load spire_core_tags %}

{% block card_title %}
    User List
{% endblock %}

{% block card_button %}
    {% if perms.django_spire_auth_user.add_authuser %}
        {% url 'django_spire:auth:user:form:register' as register_user_url %}
        {% include 'django_spire/button/primary_dark_button.html' with button_text='Add' button_icon='bi bi-plus-lg' button_href=register_user_url %}
    {% endif %}
{% endblock %}

{% block card_title_content %}
    {% for user in user_list %}
        {% include 'django_spire/auth/user/item/user_item.html' %}
    {% empty %}
        {% include 'django_spire/item/no_data_item.html' %}
    {% endfor %}
{% endblock %}

{% block card_footer %}
    {% include 'django_spire/element/pagination_element.html' with paginated_list=active_user_list %}
{% endblock %}
