aboutsummaryrefslogtreecommitdiffstats
path: root/server/templates
diff options
context:
space:
mode:
Diffstat (limited to 'server/templates')
-rw-r--r--server/templates/server/data_request.html2
-rw-r--r--server/templates/server/doc_list.html6
-rw-r--r--server/templates/server/doc_type.html19
-rw-r--r--server/templates/server/download_doc.html6
-rw-r--r--server/templates/server/user_list.html6
5 files changed, 35 insertions, 4 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_list.html b/server/templates/server/doc_list.html
index f98cbd5..fd90f12 100644
--- a/server/templates/server/doc_list.html
+++ b/server/templates/server/doc_list.html
@@ -211,10 +211,14 @@
<input disabled value="{{doc.4}}" id="branca" type="text">
<label for="branca">Branca</label>
</div>
- <div class="input-field col l8 s12">
+ <div class="input-field col l4 s12">
<input disabled value="{{doc.2.parent_name}}" id="parent_name" type="text" >
<label for="parent_name">Nome dei genitori</label>
</div>
+ <div class="input-field col l4 s12">
+ <input disabled value="{{doc.2.avs_number}}" id="avs_number" type="text">
+ <label for="avs_number">Numero AVS</label>
+ </div>
<div class="input-field col l12 s12">
<input value="{{doc.2.via}}" disabled id="via" type="text" >
<label for="via">Via e numero</label>
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">
diff --git a/server/templates/server/download_doc.html b/server/templates/server/download_doc.html
index fe7cf18..cce0c26 100644
--- a/server/templates/server/download_doc.html
+++ b/server/templates/server/download_doc.html
@@ -51,10 +51,14 @@
<input placeholder=" " value="{{doc.4}}" id="branca" type="text">
<label class="active" for="branca">Branca</label>
</div>
- <div class="input-field col l8 s12">
+ <div class="input-field col l4 s12">
<input placeholder=" " value="{{doc.2.parent_name}}" id="parent_name" type="text" >
<label class="active" for="parent_name">Nome dei genitori</label>
</div>
+ <div class="input-field col l4 s12">
+ <input placeholder=" " value="{{doc.2.avs_number}}" id="avs_number" type="text">
+ <label for="avs_number">Numero AVS</label>
+ </div>
<div class="input-field col l12 s12">
<input placeholder=" " value="{{doc.2.via}}" id="via" type="text" >
<label class="active" for="via">Via e numero</label>
diff --git a/server/templates/server/user_list.html b/server/templates/server/user_list.html
index 31a7029..aa2f43e 100644
--- a/server/templates/server/user_list.html
+++ b/server/templates/server/user_list.html
@@ -87,10 +87,14 @@
<input disabled value="{{user.2}}" id="branca" type="text">
<label for="branca">Branca</label>
</div>
- <div class="input-field col l8 s12">
+ <div class="input-field col l4 s12">
<input disabled value="{{user.1.parent_name}}" id="parent_name" type="text" >
<label for="parent_name">Nome dei genitori</label>
</div>
+ <div class="input-field col l4 s12">
+ <input disabled value="{{user.1.avs_number}}" id="avs_number" type="text">
+ <label for="avs_number">Numero AVS</label>
+ </div>
<div class="input-field col l12 s12">
<input value="{{user.1.via}}" disabled id="via" type="text" >
<label for="via">Via e numero</label>