diff --git a/apps/member/templates/member/club_list.html b/apps/member/templates/member/club_list.html index 0ae4d5b8..f6d039e7 100644 --- a/apps/member/templates/member/club_list.html +++ b/apps/member/templates/member/club_list.html @@ -1,59 +1,16 @@ -{% extends "base.html" %} -{% load render_table from django_tables2 %} -{% load i18n %} +{% extends "base_search.html" %} +{% comment %} +SPDX-License-Identifier: GPL-3.0-or-later +{% endcomment %} +{% load i18n perms %} {% block content %} -
-
- -
- {% if can_add_club %} - {% trans "Create club" %} - {% endif %} -
-
-
-
-
-
-
{% trans "Club listing" %}
-
-
- {% render_table table %} -
-
-
-
+{% if can_add_club %} + + {% trans "Create club" %} + +{% endif %} -{% endblock %} -{% block extrajavascript %} - +{# Search panel #} +{{ block.super }} {% endblock %} diff --git a/apps/member/templates/member/user_list.html b/apps/member/templates/member/user_list.html index 66aecf3a..ce0b14a7 100644 --- a/apps/member/templates/member/user_list.html +++ b/apps/member/templates/member/user_list.html @@ -1,10 +1,8 @@ -{% extends "base.html" %} +{% extends "base_search.html" %} {% comment %} SPDX-License-Identifier: GPL-3.0-or-later {% endcomment %} -{% load render_table from django_tables2 %} -{% load i18n crispy_forms_tags perms %} -{% block contenttitle %}{% endblock %} +{% load i18n perms %} {% block content %} {% if "member.change_profile_registration_valid"|has_perm:user %} @@ -13,63 +11,6 @@ SPDX-License-Identifier: GPL-3.0-or-later {% endif %} -
-

- {{ title }} -

-
- -
-
-
- {% if table.data %} - {% render_table table %} - {% else %} -
- {% trans "There is no user with this pattern." %} -
- {% endif %} -
-
-
+{# Search panel #} +{{ block.super }} {% endblock %} - -{% block extrajavascript %} - -{% endblock %} \ No newline at end of file diff --git a/note_kfet/templates/base_search.html b/note_kfet/templates/base_search.html new file mode 100644 index 00000000..83c715d9 --- /dev/null +++ b/note_kfet/templates/base_search.html @@ -0,0 +1,86 @@ +{% extends "base.html" %} +{% comment %} +SPDX-License-Identifier: GPL-3.0-or-later +{% endcomment %} +{% load render_table from django_tables2 %} +{% load i18n perms %} +{% block contenttitle %}{% endblock %} + +{% block content %} +
+

+ {{ title }} +

+
+ +
+
+ {% if table.data %} + {% render_table table %} + {% else %} +
+
+ {% trans "There is no results." %} +
+
+ {% endif %} +
+
+{% endblock %} + +{% block extrajavascript %} + +{% endblock %} \ No newline at end of file