aboutsummaryrefslogtreecommitdiffstats
path: root/server/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2021-07-23 16:29:40 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2021-07-23 16:29:52 +0200
commit771350b7781cac41edd36db454c54991df6c183d (patch)
tree0436720f48f2adaa7350a3281aa37b90175ffe57 /server/templates
parentset foreign key to null when deleting (diff)
downloadscout-subs-771350b7781cac41edd36db454c54991df6c183d.tar.gz
scout-subs-771350b7781cac41edd36db454c54991df6c183d.zip
export csv of users or document types
Diffstat (limited to '')
-rw-r--r--server/templates/server/data_request.html2
-rw-r--r--server/templates/server/doc_type.html19
2 files changed, 20 insertions, 1 deletions
diff --git a/server/templates/server/data_request.html b/server/templates/server/data_request.html
index 1db580c..fbbcbc0 100644
--- a/server/templates/server/data_request.html
+++ b/server/templates/server/data_request.html
@@ -20,6 +20,8 @@
<option value="" disabled selected>Scegli</option>
<option value="email_all">Email (tutti gli utenti)</option>
<option value="email_non_staff">Email (solo non capi)</option>
+ <option value="data_user">CSV Dati personali</option>
+ <option value="data_user_medic">CSV Dati personali + medici</option>
</select>
<label>Richiesta dati</label>
</div>
diff --git a/server/templates/server/doc_type.html b/server/templates/server/doc_type.html
index c407239..1ef1433 100644
--- a/server/templates/server/doc_type.html
+++ b/server/templates/server/doc_type.html
@@ -144,7 +144,24 @@
<span class="new badge {{color}}" data-badge-caption="">{{doctype.2}}</span>
</div>
<div class="collapsible-body"><span>
- <a class="waves-effect waves-light btn {{color}}" onclick="send('e{{doctype.0.id}}')"><i class="material-icons left">edit</i> Modifica tipo</a>
+ <div class="hide-on-med-and-down">
+ <a class="waves-effect waves-light btn {{color}}" onclick="send('e{{doctype.0.id}}')"><i class="material-icons left">edit</i> Modifica tipo</a>
+ <a class="waves-effect waves-light btn {{color}}" onclick="send('d{{doctype.0.id}}')"><i class="material-icons left">file_download</i> Scarica CSV</a>
+ {% if doctype.0.medical_data %}
+ <a class="waves-effect waves-light btn {{color}}" onclick="send('m{{doctype.0.id}}')"><i class="material-icons left">file_download</i> Scarica CSV (con dati medici)</a>
+ {% endif %}
+ </div>
+ <div style="margin-bottom: 0px;" class="hide-on-large-only row">
+ <a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('e{{doctype.0.id}}')"><i class="material-icons left">edit</i> Modifica tipo</a>
+ <br>
+ <br>
+ <a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('d{{doctype.0.id}}')"><i class="material-icons left">file_download</i> Scarica CSV</a>
+ {% if doctype.0.medical_data %}
+ <br>
+ <br>
+ <a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('m{{doctype.0.id}}')"><i class="material-icons left">file_download</i> Scarica CSV (con dati medici)</a>
+ {% endif %}
+ </div>
<br>
<br>
<ul class="collection">