|
|
@@ -39,6 +39,7 @@
|
|
|
<th scope='col'>Storage</th>
|
|
|
<th scope='col'>Descrizione</th>
|
|
|
<th scope='col'>Inserimento</th>
|
|
|
+ <th scope='col'>Cancella</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
@@ -50,8 +51,33 @@
|
|
|
<td> {{ documento.storage}} </td>
|
|
|
<td> {{ uu.descrizione }} </td>
|
|
|
<td> {{ documento.dataupload | date:'d/m/Y' }} </td>
|
|
|
-
|
|
|
+ <td><button type='button' class='btn btn-secondary' data-bs-toggle='modal' data-bs-target='#ConfirmDeleteModal{{ documento.id }}' value='{{ documento.id }}'>Elimina</button></td>
|
|
|
</tr>
|
|
|
+ <!-- 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="Close">
|
|
|
+ <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">
|
|
|
+ <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
|
|
+ <form name='ConfirmDeleteModal' method='POST'>
|
|
|
+ {% csrf_token %}
|
|
|
+ <button type="submit" name="DeleteDocument" value='{{ documento.id }}' class="btn btn-primary">Conferma</button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- end modal -->
|
|
|
{% endfor %}
|
|
|
</tbody>
|
|
|
</table>
|