From 143e5ff0bf818a8750ce222cd02e65e7f5f8b8f3 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Sun, 29 Aug 2021 20:26:34 +0200 Subject: remove last loops for admin interface --- server/templates/server/doc_list.html | 125 +++++++++++------------ server/templates/server/doc_list_readonly.html | 131 +++++++++++++------------ 2 files changed, 131 insertions(+), 125 deletions(-) (limited to 'server/templates') diff --git a/server/templates/server/doc_list.html b/server/templates/server/doc_list.html index fd90f12..74024e7 100644 --- a/server/templates/server/doc_list.html +++ b/server/templates/server/doc_list.html @@ -32,6 +32,7 @@ {% endblock %} {% block content %} +{% load app_filter %} {% endif %} {% endif %} - {% if doc.0.document_type.custom_data %} + {% if doc.document_type.custom_data %}
  • add_circle_outlineDati aggiuntivi @@ -402,7 +403,7 @@
    - {% for key in doc.1 %} + {% for key in doc|doc_key %} @@ -413,7 +414,6 @@ {% endif %} - {% if doc.0.document_type.medical_data %}
  • attach_fileAllegati @@ -423,16 +423,17 @@
    - {% if doc.5 %}{% endif %} + {% if doc.signed_doc %} {% endif %}
    + {% if doc.medical_data %}
    - {% if doc.6 %}{% endif %} + {% if doc.medical_data.health_care_certificate %}{% endif %}
    @@ -441,14 +442,14 @@
    - {% if doc.7 %}{% endif %} + {% if doc.medical_data.vac_certificate %}{% endif %}
    + {% endif %}
  • - {% endif %} diff --git a/server/templates/server/doc_list_readonly.html b/server/templates/server/doc_list_readonly.html index 42a52e8..0ed1650 100644 --- a/server/templates/server/doc_list_readonly.html +++ b/server/templates/server/doc_list_readonly.html @@ -26,6 +26,7 @@ {% endblock %} {% block content %} +{% load app_filter %} {% endif %} {% endif %} - {% if doc.0.document_type.custom_data %} + {% if doc.document_type.custom_data %}
  • add_circle_outlineDati aggiuntivi @@ -379,7 +384,7 @@
  • {{key.key}} {{key.value}}
    - {% for key in doc.1 %} + {% for key in doc|doc_key %} @@ -390,7 +395,6 @@ {% endif %} - {% if doc.0.document_type.medical_data %}
  • attach_fileAllegati @@ -400,16 +404,17 @@
    - {% if doc.5 %}{% endif %} + {% if doc.signed_doc %} {% endif %}
    + {% if doc.medical_data %}
    - {% if doc.6 %}{% endif %} + {% if doc.medical_data.health_care_certificate %}{% endif %}
    @@ -418,14 +423,14 @@
    - {% if doc.7 %}{% endif %} + {% if doc.medical_data.vac_certificate %}{% endif %}
    + {% endif %}
  • - {% endif %} @@ -484,7 +489,7 @@ $('#chips_owner').chips({ autocompleteOptions: { data: { {% for user in users %} - '{{user.username}} ({{user.first_name}} {{user.last_name}})': null, + '{{user.user__username}} ({{user.user__first_name}} {{user.user__last_name}})': null, {% endfor %} }, limit: Infinity, -- cgit v1.2.1
    {{key.key}} {{key.value}}