From 74066e9484ecd833d6fe4631be016e8b32ac5d34 Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Mon, 28 Sep 2020 09:17:52 +0100 Subject: [PATCH] Remove database ID from generic list --- templates/partials/generic_list.html | 105 ++++++++++---------- templates/partials/generic_list_mobile.html | 19 ---- 2 files changed, 51 insertions(+), 73 deletions(-) delete mode 100644 templates/partials/generic_list_mobile.html diff --git a/templates/partials/generic_list.html b/templates/partials/generic_list.html index 63005fb3..f46f37cf 100644 --- a/templates/partials/generic_list.html +++ b/templates/partials/generic_list.html @@ -1,67 +1,64 @@ {% load url_replace from filters %} {% load orderby from filters %} {% load paginator from filters %} -
-
+
+ {% csrf_token %} -
+
- +
- New + -
-
- - - - - - - - {% if union_account %} {#TODO#} - - {% endif %} - - - - - {% for object in object_list %} - - - - - - - {% if union_account %} - - {% endif %} - - - {% empty %} - - - - {% endfor %} - -
#Name - EmailPhoneNotesUnion AccountQuick Links
{{ object.pk }}{{ object.name }}{{ object.email }}{% if object.phone %}{%endif%}{{ object.phone }}{% if object.phone %}{%endif%}{{ object.notes|yesno|capfirst }}{{ object.union_account|yesno|capfirst }} - -
Nothing found
-
-
-
- {% include 'partials/generic_list_mobile.html' %} -
+
+
+ + + + + + + {% if union_account %} {#TODO#} + + {% endif %} + + + + + {% for object in object_list %} + + + + + + {% if union_account %} + + {% endif %} + + + {% empty %} + + + + {% endfor %} + +
Name + EmailPhoneNotesUnion AccountQuick Links
{{ object.name }}{{ object.email }}{% if object.phone %}{%endif%}{{ object.phone }}{% if object.phone %}{%endif%}{{ object.notes|yesno|capfirst }}{{ object.union_account|yesno|capfirst }} + +
Nothing found
+
+
{% if is_paginated %}
{% paginator %} diff --git a/templates/partials/generic_list_mobile.html b/templates/partials/generic_list_mobile.html deleted file mode 100644 index ee959bef..00000000 --- a/templates/partials/generic_list_mobile.html +++ /dev/null @@ -1,19 +0,0 @@ -
-{% for object in object_list %} - -
-
    -
  • Email: {{ object.email }}
  • -
  • Phone: {% if object.phone %}{%endif%}{{ object.phone }}{% if object.phone %}{%endif%}
  • -
  • Notes:{{ object.notes|yesno|capfirst }}
  • - {% if union_account %} -
  • strong>Union Account: {{ object.union_account|yesno|capfirst }}
  • - {% endif %} -
- Edit -
-{% endfor %} -