From 26fb6c43a27c014383127d0e4b3fb29f8b923690 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Sat, 20 Jun 2020 23:32:55 +0200 Subject: Doc, doctypes, users all done --- server/templates/server/doc_create.html | 103 ++++++++++++++++++++++++++++++++ server/templates/server/doc_edit.html | 92 ---------------------------- server/templates/server/doc_list.html | 72 +++++++++++++++------- server/templates/server/doc_type.html | 59 ++++++++++++------ server/templates/server/index.html | 17 +++++- 5 files changed, 211 insertions(+), 132 deletions(-) create mode 100644 server/templates/server/doc_create.html delete mode 100644 server/templates/server/doc_edit.html (limited to 'server/templates') diff --git a/server/templates/server/doc_create.html b/server/templates/server/doc_create.html new file mode 100644 index 0000000..6454bee --- /dev/null +++ b/server/templates/server/doc_create.html @@ -0,0 +1,103 @@ +{% extends 'registration/base.html' %} + +{% block title %}Admin - Crea Tipo{% endblock %} + +{% block nav %} + Home + Admin + Tipo Doc + Crea Tipo +{% endblock %} + +{% block content %} +
+
+
+
+
+ {% csrf_token %} +
+
+ + +
+
+
+
+ +
+
+ +
+
+ + +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+
+ + +
+
+
+
+ + +
+
+ +
+
+
+
+
+{% endblock %} \ No newline at end of file diff --git a/server/templates/server/doc_edit.html b/server/templates/server/doc_edit.html deleted file mode 100644 index 8b01c35..0000000 --- a/server/templates/server/doc_edit.html +++ /dev/null @@ -1,92 +0,0 @@ -{% extends 'registration/base.html' %} - -{% block title %}Admin - Modifica Tipo{% endblock %} - -{% block nav %} - Home - Admin - Tipo Doc - Modifica Doc -{% endblock %} - -{% block content %} -
-
-
-
-
- {% csrf_token %} -
-
- - -
-
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- -
-
- -
-
-
-
-
- - -
-
-
-
- - -
-
- -
-
-
-
-
-{% endblock %} \ No newline at end of file diff --git a/server/templates/server/doc_list.html b/server/templates/server/doc_list.html index c5978b1..0b3d800 100644 --- a/server/templates/server/doc_list.html +++ b/server/templates/server/doc_list.html @@ -51,36 +51,68 @@ archive {% endif %} {{doc.0.document_type.name}} - {{doc.0.user.username}} + {{doc.0.user.username}}
{{doc.0.code}}
{{doc.0.compilation_date}}
+
    {% if doc.0.document_type.personal_data %} - person +
  • +
    + personDati personali +
    +
    + + + {% for field in doc.2 %} + + + + {% endfor %} + +
    {{field}}
    +
    +
  • {% endif %} {% if doc.0.document_type.medical_data %} - healing - {% endif %} - {% if doc.0.document_type.custom_message %} - message - {% endif %} - {% if doc.0.document_type.custom_data %} - add_circle_outline +
  • +
    + healingDati medici +
    +
    + + + {% for field in doc.3 %} + + + + {% endfor %} + +
    {{field}}
    +
    +
  • {% endif %} {% if doc.0.document_type.custom_data %} -
    - - - {% for key in doc.1 %} - - - - - {% endfor %} - -
    {{key.key}}{{key.value}}
    +
  • +
    + add_circle_outlineDati aggiuntivi +
    +
    + + + {% for key in doc.1 %} + + + + + {% endfor %} + +
    {{key.key}}{{key.value}}
    +
    +
  • {% endif %} +
{% endfor %} diff --git a/server/templates/server/doc_type.html b/server/templates/server/doc_type.html index fecfc9d..15ac30e 100644 --- a/server/templates/server/doc_type.html +++ b/server/templates/server/doc_type.html @@ -48,41 +48,64 @@ {% if not doctype.0.group_private %} public {% endif %} + {% if doctype.0.auto_sign %} + assignment_turned_in + {% endif %} {{doctype.0.name}} - {{doctype.2}} + {{doctype.2}}
+
    {% if doctype.0.personal_data %} - person +
  • +
    + personDati personali +
    +
  • {% endif %} {% if doctype.0.medical_data %} - healing - {% endif %} - {% if doctype.0.custom_data %} - add_circle_outline - {% endif %} - {% if doctype.0.custom_message %} - message +
  • +
    + healingDati medici +
    +
  • {% endif %} {% if doctype.0.custom_data %} -
    -
      - {% for key in doctype.1 %} -
    • {{key.key}}
    • - {% endfor %} -
    +
  • +
    + add_circle_outlineDati aggiuntivi +
    +
    + + + {% for key in doctype.1 %} + + + + {% endfor %} + +
    {{key.key}}
    +
    +
  • {% endif %} {% if doctype.0.custom_message %} -
    - {{doctype.0.custom_message_text}} +
  • +
    + messageMessaggio aggiuntivo +
    +
    + {{doctype.0.custom_message_text}} +
    +
  • {% endif %} +
{% endfor %}
- + add
diff --git a/server/templates/server/index.html b/server/templates/server/index.html index d88454f..199feb5 100644 --- a/server/templates/server/index.html +++ b/server/templates/server/index.html @@ -40,8 +40,21 @@
-

I am a very simple card. I am good at containing small bits of information. - I am convenient because I require little markup to use effectively.

+
    + {% for doctype in docs %} +
  • +
    + {% if not doctype.0.enabled %} + visibility_off + {% endif %} + {% if not doctype.0.group_private %} + public + {% endif %} + {{doctype.0.name}} + {{doctype.1}} +
    + {% endfor %} +
Lista tipo doc -- cgit v1.2.1