From 042c945b15385535f81ee64c5371547b54ddd5a2 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Fri, 10 Jul 2020 11:21:54 +0200 Subject: [PATCH] Divide filters by headings and add clear button --- aleksis/core/templates/core/group/list.html | 6 ++++++ aleksis/core/templates/core/person/list.html | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/aleksis/core/templates/core/group/list.html b/aleksis/core/templates/core/group/list.html index 5dff8c86a..436b193e7 100644 --- a/aleksis/core/templates/core/group/list.html +++ b/aleksis/core/templates/core/group/list.html @@ -14,11 +14,17 @@ {% trans "Create group" %} </a> + <h5>{% trans "Filter groups" %}</h5> <form method="get"> {% form form=groups_filter.form %}{% endform %} {% trans "Search" as caption %} {% include "core/partials/save_button.html" with caption=caption icon="search" %} + <button type="reset" class="btn red waves-effect waves-light"> + <i class="material-icons left">clear</i> + {% trans "Clear" %} + </button> </form> + <h5>{% trans "Selected groups" %}</h5> {% render_table groups_table %} {% endblock %} diff --git a/aleksis/core/templates/core/person/list.html b/aleksis/core/templates/core/person/list.html index 816e7254b..b48baf3e5 100644 --- a/aleksis/core/templates/core/person/list.html +++ b/aleksis/core/templates/core/person/list.html @@ -18,11 +18,17 @@ </a> {% endif %} + <h5>{% trans "Filter persons" %}</h5> <form method="get"> {% form form=persons_filter.form %}{% endform %} {% trans "Search" as caption %} {% include "core/partials/save_button.html" with caption=caption icon="search" %} + <button type="reset" class="btn red waves-effect waves-light"> + <i class="material-icons left">clear</i> + {% trans "Clear" %} + </button> </form> + <h5>{% trans "Selected persons" %}</h5> {% render_table persons_table %} {% endblock %} -- GitLab