From ed8abf016412ed8b0594b775530f6eaefef69eb5 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Sat, 6 Aug 2022 22:11:59 +0200 Subject: unified approve doc page --- server/templates/server/approve_doc.html | 84 ++++++++++++++++++++++++++++++++ server/templates/server/index.html | 1 - 2 files changed, 84 insertions(+), 1 deletion(-) (limited to 'server/templates') diff --git a/server/templates/server/approve_doc.html b/server/templates/server/approve_doc.html index 23eef4f..f9985bb 100644 --- a/server/templates/server/approve_doc.html +++ b/server/templates/server/approve_doc.html @@ -29,6 +29,7 @@
{% csrf_token %}
+ Approvazione multipla

Inserire un codice per riga

@@ -39,4 +40,87 @@ + + + {% csrf_token %} + +
+ +
+
+
+
+ {% csrf_token %} +
+ Approvazione singola +

Possibilità di caricare foto della firma e visualizzare il documento prima di approvarlo

+ {{error_text}} +
+
+ + +
+
+
+
+
+ file_uploadFile + +
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+{% endblock %} + +{% block script %} +function confirm() { + var button = document.getElementById('send_button') + button.innerHTML = "Sicuro?" + button.setAttribute('onclick', "document.getElementById('form2').submit()") + button.setAttribute('class', "waves-effect waves-light btn green") +} + +function send() { + var form = document.getElementById('preview_form') + var action = document.getElementById('code_submit') + var text = document.getElementById('code').value + action.setAttribute('value', text); + form.submit() +} + +var loadFile = function(event) { + var output = document.getElementById('preview'); + output.src = URL.createObjectURL(event.target.files[0]); + output.onload = function() { + URL.revokeObjectURL(output.src) // free memory + } +}; +$(document).ready(function(){ + {% if error %} + M.toast({html: '{{ error_text }}', classes: 'orange'}) + {% elif success %} + M.toast({html: '{{ success_text }}', classes: 'green'}) + {% endif %} +}); {% endblock %} \ No newline at end of file diff --git a/server/templates/server/index.html b/server/templates/server/index.html index 8c60b48..1d78a74 100644 --- a/server/templates/server/index.html +++ b/server/templates/server/index.html @@ -89,7 +89,6 @@ Tipi Documenti Approva documento - Carica firma
-- cgit v1.2.1