diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-07-31 10:45:56 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-07-31 10:45:56 +0200 |
commit | 0d24c3ca2c4810b5000e511900ad603d8b264205 (patch) | |
tree | 72d6529b616bd00ff6f61863d0fc2de11ab6f66d /server/templates | |
parent | perm staff for non primary group (diff) | |
download | scout-subs-0d24c3ca2c4810b5000e511900ad603d8b264205.tar.gz scout-subs-0d24c3ca2c4810b5000e511900ad603d8b264205.zip |
self delete of medical data
Diffstat (limited to 'server/templates')
-rw-r--r-- | server/templates/server/doc_list.html | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/server/templates/server/doc_list.html b/server/templates/server/doc_list.html index 302a1d9..7bdbb17 100644 --- a/server/templates/server/doc_list.html +++ b/server/templates/server/doc_list.html @@ -34,7 +34,7 @@ </label> </a> </li> - <li><a class="tooltipped" data-position="top" data-tooltip="Archivia selezionati" onclick="send('archive')"><i class="material-icons">archive</i></a></li> + <li><a class="tooltipped modal-trigger" href="#modal2" data-position="top" data-tooltip="Archivia selezionati"><i class="material-icons">archive</i></a></li> <li><a class="tooltipped" data-position="top" data-tooltip="Dearchivia selezionati" Onclick="send('unarchive')"><i class="material-icons">unarchive</i></a></li> {% if settings.DEBUG %} <li><a class="tooltipped" data-position="top" data-tooltip="Approva selezionati" Onclick="send('approve')"><i class="material-icons left">check</i>DEBUG</a></li> @@ -50,6 +50,20 @@ {% endblock %} {% block content %} + +<div id="modal2" class="modal"> + <div class="modal-content"> + <h4>Attenzione</h4> + <p> + Se il documento contine dati medici quando archiviato tutti i dati medici verranno eliminati. + </p> + </div> + <div class="modal-footer"> + <a style="color:red" href="#!" class="modal-close waves-effect waves-green btn-flat">Annulla</a> + <a onclick="send('archive')" class="modal-close waves-effect waves-green btn-flat">Archivia documenti</a> + </div> +</div> + <form id="selection" action="{% url 'doclist' %}" method="post"> {% csrf_token %} <div id="modal1" class="modal"> @@ -245,8 +259,13 @@ {% if doc.0.document_type.medical_data %} <li> <div class="collapsible-header"> - <i class="material-icons">healing</i>Dati medici + {% if doc.0.medical_data %} + <i class="material-icons">healing</i>Dati medici + {% else %} + <i class="material-icons">healing</i><del>Dati medici</del> + {% endif %} </div> + {% if doc.0.medical_data %} <div class="collapsible-body"><span> <div class="row"> <div class="col s12"> @@ -369,6 +388,7 @@ <label for="misc">Se sì quali</label> </div> </span></div> + {% endif %} </li> {% endif %} {% if doc.0.document_type.custom_data %} |