{% extends "base.html" %} {% import "components/typography.html" as typography %} {% import "components/dropdown.html" as dropdown %} {% import "components/cards.html" as cards %} {% import "components/inputs.html" as form_helpers %} {% block title %} {{ t!("user.index.title_tag") }} {% endblock %} {% block main %} {% call typography::heading(t!("user.index.title")) %} {{ t!("user.index.button") }} {% endcall %} {% call cards::card() %}
{% match query.name %} {% when Some with (value) %} {% when None %} {% endmatch %}
{% endcall %} {% call cards::card() %} {% if users_with_books_number.is_empty() %}

{{ t!("common.no_result") }}

{{ t!("user.index.button") }}
{% else %} {% for user_information in users_with_books_number %} {% endfor %}
# {{ t!("user.attributes.name") }} {{ t!("user.attributes.owner_books") }} {{ t!("user.attributes.borrowed_books") }} {{ t!("common.actions") }}
{{ user_information.user.id }} {{ user_information.user.name }} {{ user_information.owner_book_number }} {{ user_information.borrowed_book_number }} {{ dropdown::crud_dropdown_button(user_information.user, t!("common.actions"), "users", show = false) }}
{% endif %} {% endcall %} {% endblock %}