|
|
@@ -70,64 +70,9 @@
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
-
|
|
|
- {% if ElencoDocumenti %}
|
|
|
- <table class='table table-striped table-hover'>
|
|
|
- <thead class='thead-dark'>
|
|
|
- <tr>
|
|
|
- <th scope='col'><input type='checkbox' class='form-check-input' value='0' name='selezione'></th>
|
|
|
- <th scope='col'>Vedi</th>
|
|
|
- <th scope='col'>Utente associato</th>
|
|
|
- <th scope='col'>Documento</th>
|
|
|
- <th scope='col'>Descrizione</th>
|
|
|
- <th scope='col'>Inserimento</th>
|
|
|
- {% if admin.edit_documento %} <th scope='col'>Cancella</th> {% endif %}
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- {% for documento in ElencoDocumenti %}
|
|
|
- <tr>
|
|
|
- <td><input type='checkbox' class='form-check-input' value='{{ documento.id }}' name='selezione'></td>
|
|
|
- <td> <button type='button' class='btn btn-primary btn-block btn-lg mb-2 active' onclick="window.open('{% url "documento:finalize" documento.id documento.utente.id%}')">Vedi</button></td>
|
|
|
- <td> {{ documento.utente.nome }} </td>
|
|
|
- <td> {{ documento.documento }}<br>{{ documento.storage }} </td>
|
|
|
- <td> {{ documento.descrizione }} </td>
|
|
|
- <td> {{ documento.dataupload | date:'d/m/Y' }} </td>
|
|
|
- {% if admin.edit_documento %}
|
|
|
- <td><button type='button' class='btn btn-secondary' data-bs-toggle='modal' data-bs-target='#ConfirmDeleteModal{{ documento.id }}' value='{{ documento.id }}'>Elimina</button></td>
|
|
|
- {% endif %}
|
|
|
- </tr>
|
|
|
- {% if admin.edit_documento %}
|
|
|
- <!-- Modal -->
|
|
|
- <div class="modal fade" id="ConfirmDeleteModal{{ documento.id }}" tabindex="-1" role="dialog" aria-labelledby="ConfirmDeleteLabel{{ document.id }}" aria-hidden="true">
|
|
|
- <div class="modal-dialog" role="document">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="modal-header">
|
|
|
- <h5 class="modal-title" id="ConfirmDeleteLabel">Conferma Cancellazione</h5>
|
|
|
- <button type="button" class="close" data-bs-dismiss="modal" aria-label="Chiudi">
|
|
|
- <span aria-hidden="true">×</span>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div class="modal-body">
|
|
|
- Confermi la cancellazione di {{ documento.documento }}?<br>
|
|
|
- La cancellazione del documento è definitiva,immediata e non recuperabile.
|
|
|
- </div>
|
|
|
- <div class="modal-footer">
|
|
|
- <form name='ConfirmDeleteModal' method='POST'>
|
|
|
- {% csrf_token %}
|
|
|
- <button type="submit" name="DeleteDocument" value='{{ documento.id }}' class="btn btn-primary">Cancella</button>
|
|
|
- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Chiudi/Annulla</button>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <!-- end modal -->
|
|
|
- {% endif %}
|
|
|
- {% endfor %}
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- {% endif %}
|
|
|
+ {# il modulo di visualizzazione documenti e' condiviso con la gestione utenti #}
|
|
|
+ {% include 'documento.welcome.lista.html' %}
|
|
|
+
|
|
|
{% endblock %}
|
|
|
|
|
|
{% block bodybottom %}
|