From bbfd859d082ab23729d9ad3841c7df260b8e72d8 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Sat, 29 Aug 2020 15:33:59 +0200 Subject: better download html --- server/templates/server/download_doc.html | 67 ++++++++++++++----------------- server/views.py | 2 +- 2 files changed, 32 insertions(+), 37 deletions(-) diff --git a/server/templates/server/download_doc.html b/server/templates/server/download_doc.html index 35cbb13..3098fe0 100644 --- a/server/templates/server/download_doc.html +++ b/server/templates/server/download_doc.html @@ -36,59 +36,59 @@

- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -105,23 +105,23 @@
- +
- +
- +
- +
- +
@@ -132,15 +132,15 @@
- +
- +
- +
@@ -160,15 +160,15 @@
Medico di famiglia
- +
- +
- +
@@ -177,19 +177,19 @@
Scheda medica personale
- +
- +
- +
- +
@@ -202,7 +202,7 @@
- +
@@ -215,7 +215,7 @@
- +
@@ -275,9 +275,4 @@ - \ No newline at end of file diff --git a/server/views.py b/server/views.py index ab22891..cdc1b74 100644 --- a/server/views.py +++ b/server/views.py @@ -221,7 +221,7 @@ def ulist(request): # render context html = template.render(context) # render pdf using wkhtmltopdf - pdf = pdfkit.from_string(html, False, options={"window-status":"done"}) + pdf = pdfkit.from_string(html, False) result = BytesIO(pdf) result.seek(0) return FileResponse(result, filename=document.user.username+"_"+document.document_type.name+".pdf") -- cgit v1.2.1