utente.edit.document.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <div class="tab-pane fade" id="document-pane" role="tabpanel" aria-labelledby="document-tab" tabindex="0">
  2. <!-- documenti -->
  3. <div class='form-outline mb-3 text-center btn-primary h3'>
  4. Elenco Documenti Associati
  5. </div>
  6. <hr>
  7. {% include 'documento.welcome.lista.html' %}
  8. </hr>
  9. {% if admin.crea_documento %}
  10. <form name='fileManager' method="POST" enctype='multipart/form-data'>
  11. {% csrf_token %}
  12. <table class='table table-striped table-hover'>
  13. <tbody>
  14. <tr>
  15. <td><label for='descrizione'>Descrizione:&nbsp;</label>
  16. <input type='text' name='descrizione' id='descrizione' value=''>
  17. <input type='file' class="btn btn-primary" name='allegati' id='allegati' value='{{ uf.allegati }}' accept='application/pdf' multiple></td>
  18. <td><input class="btn btn-primary" type='submit' value='Inserisci'></td>
  19. </tr>
  20. </table>
  21. </form>
  22. {% endif %}
  23. {% if listaok %}
  24. <table class='table table-striped table-hover'>
  25. <thead class='thead-dark'>
  26. <tr>
  27. <th scope='col'>Documento caricato con successo</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. {% for l in listaok %}
  32. <tr>
  33. <td> {{ l }} </td>
  34. </tr>
  35. {% endfor %}
  36. </tbody>
  37. </table>
  38. {% endif %}
  39. <div><br><br></div>
  40. {% if listanotok %}
  41. <table class='table table-striped table-hover'>
  42. <thead class='thead-dark'>
  43. <tr>
  44. <th scope='col'>Documento non caricato perche già presente</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. {% for l in listanotok %}
  49. <tr>
  50. <td> {{ l }} </td>
  51. </tr>
  52. {% endfor %}
  53. </tbody>
  54. </table>
  55. {% endif %}
  56. </div>