From ccc5d1f1b2cb4b5e2a95b97bbd1a5760ce585f08 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Sat, 20 Jun 2020 15:55:28 +0200 Subject: Document custom field --- client/templates/client/doc_create.html | 95 ++++++++++++++++++++++++++++----- client/templates/client/index.html | 55 +++++++++++++------ 2 files changed, 120 insertions(+), 30 deletions(-) (limited to 'client/templates/client') diff --git a/client/templates/client/doc_create.html b/client/templates/client/doc_create.html index a52518f..550eb54 100644 --- a/client/templates/client/doc_create.html +++ b/client/templates/client/doc_create.html @@ -4,7 +4,7 @@ {% block nav %} Home - Crea Doc + Crea Documento {% endblock %} {% block content %} @@ -14,20 +14,78 @@
{% csrf_token %} -
-
- - + + {% if not next %} +
+
+ + +
-
- + + navigate_beforeIndietro + + Avanti + navigate_next + + {% else %} + +
+
+ + +
+
+ {% if personal_data %} + + {% endif %} + {% if medical_data %} + + {% endif %} + {% if custom_message %} + + {% endif %} + {% if custom_data %} + {% for key in keys %} +
+
+ + +
+
+ {% endfor %} + {% endif %} + + {% endif %}
@@ -38,5 +96,14 @@ {% block script %} $(document).ready(function(){ $('select').formSelect(); + {% if error %} + M.toast({html: '{{ error_text}}', classes: 'orange'}) + {% endif %} }); +function send(id) { + var form = document.getElementById('form') + var action = document.getElementById('action') + action.setAttribute('value', id); + form.submit() +} {% endblock %} \ No newline at end of file diff --git a/client/templates/client/index.html b/client/templates/client/index.html index 2b19f30..96179b2 100644 --- a/client/templates/client/index.html +++ b/client/templates/client/index.html @@ -15,34 +15,56 @@ {% if user.is_authenticated %} {% if user.is_staff or perms.client.approved %} -
- {% csrf_token %} + {% if not empty %} -
+ {% endif %}
- + add
@@ -75,6 +97,7 @@ {% block script %} $(document).ready(function(){ + $('.collapsible').collapsible(); $('.tap-target').tapTarget(); {% if empty %} $('.tap-target').tapTarget('open'); -- cgit v1.2.1