canaille-globuzma/canaille/templates/users.html
Éloi Rivard cf9b5c11a3 Dynamic tables with htmx
- Search is triggered with user inputs
- Page changes are triggered with clicks
2023-03-09 19:31:59 +01:00

21 lines
745 B
HTML

{% extends theme('base.html') %}
{% import "macro/table.html" as table %}
{% block script %}
<script src="/static/js/users.js"></script>
{% endblock %}
{% block content %}
<div class="ui segment">
<div class="ui stackable buttons">
<a class="ui primary button" href="{{ url_for('account.profile_creation') }}">{% trans %}Add a user{% endtrans %}</a>
{% if has_smtp %}
<a class="ui button" href="{{ url_for('account.user_invitation') }}">{% trans %}Invite a user{% endtrans %}</a>
{% endif %}
</div>
</div>
<div class="ui attached segment">
{{ table.search(table_form, "table.users") }}
</div>
{% include "partial/users.html" %}
{% endblock %}