From ffb9b4111a891fda9e9e1ddf19de936bdbd664f8 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Sat, 20 Jun 2020 00:28:16 +0200 Subject: Document support --- client/templates/client/doc_create.html | 42 +++++++++++++++++++++++++++ client/templates/client/index.html | 51 +++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 client/templates/client/doc_create.html (limited to 'client/templates') diff --git a/client/templates/client/doc_create.html b/client/templates/client/doc_create.html new file mode 100644 index 0000000..a52518f --- /dev/null +++ b/client/templates/client/doc_create.html @@ -0,0 +1,42 @@ +{% extends 'registration/base.html' %} + +{% block title %}Admin - Modifica Tipo{% endblock %} + +{% block nav %} + Home + Crea Doc +{% endblock %} + +{% block content %} +
+
+
+
+
+ {% csrf_token %} +
+
+ + +
+
+ +
+
+
+
+
+{% endblock %} + +{% block script %} +$(document).ready(function(){ + $('select').formSelect(); + }); +{% endblock %} \ No newline at end of file diff --git a/client/templates/client/index.html b/client/templates/client/index.html index 64b4d42..2b19f30 100644 --- a/client/templates/client/index.html +++ b/client/templates/client/index.html @@ -7,8 +7,45 @@ {% endblock%} {% block content %} +
+
+
Aggiungi un documento
+

Usa questo bottone per creare un nuovo documento

+
+
{% if user.is_authenticated %} {% if user.is_staff or perms.client.approved %} +
+ {% csrf_token %} + +
+
+ + add + +
{% else %}
@@ -34,4 +71,18 @@
{% endif %} +{% endblock %} + +{% block script %} +$(document).ready(function(){ + $('.tap-target').tapTarget(); + {% if empty %} + $('.tap-target').tapTarget('open'); + {% endif %} +}); +$('*').click(function(event) { + if (this === event.target) { + $('.tap-target').tapTarget('close'); + } +}); {% endblock %} \ No newline at end of file -- cgit v1.2.1