From dad9cc2562f96aca3bc4dedaa42b6940d4d891f9 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Wed, 18 Oct 2023 19:24:16 +0200 Subject: [PATCH] chore(ux): use card elements in list views Use `card-header` and `card-footer` in the cards, use color to bring out create button --- .../apis_metainfo/templates/generic_list.html | 48 ++++++++++++------- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/apis_core/apis_metainfo/templates/generic_list.html b/apis_core/apis_metainfo/templates/generic_list.html index 1bf12b122..fd467055c 100644 --- a/apis_core/apis_metainfo/templates/generic_list.html +++ b/apis_core/apis_metainfo/templates/generic_list.html @@ -26,25 +26,35 @@
-
-

- Browse {% class_definition %} +
+
+
+

+ Browse {% class_definition %} - {% block list_title %}{% endblock %} + {% block list_title %}{% endblock %} -

+

+
- {% if get_arche_dump %} - Dump as RDF - {% endif %} + {% if get_arche_dump %} + Dump as RDF + {% endif %} - {% if user.is_authenticated %} +
- {% if create_view_link %} - Create new {{ class_name }} - {% endif %} - {% endif %} + {% if user.is_authenticated %} + {% if create_view_link %} + Create new {{ class_name }} + {% endif %} + {% endif %} + +
+
+
+
{% block customView %}{% endblock %} @@ -62,9 +72,11 @@


{% crispy filter.form filter.form.helper %} +

+