utente.edit.document.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. <form name='fileManager' method="POST" enctype='multipart/form-data'>
  10. {% csrf_token %}
  11. <table class='table table-striped table-hover'>
  12. <tbody>
  13. <tr>
  14. <td><label for='descrizione'>Descrizione:&nbsp;</label>
  15. <input type='text' name='descrizione' id='descrizione' value=''>
  16. <input type='file' class="btn btn-primary" name='allegati' id='allegati' value='{{ uf.allegati }}' accept='application/pdf' multiple></td>
  17. <td><input class="btn btn-primary" type='submit' value='Inserisci'></td>
  18. </tr>
  19. </table>
  20. </form>
  21. {% if listaok %}
  22. <table class='table table-striped table-hover'>
  23. <thead class='thead-dark'>
  24. <tr>
  25. <th scope='col'>Documento caricato con successo</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. {% for l in listaok %}
  30. <tr>
  31. <td> {{ l.documento }} </td>
  32. </tr>
  33. {% endfor %}
  34. </tbody>
  35. </table>
  36. {% endif %}
  37. <div><br><br></div>
  38. {% if listanotok %}
  39. <table class='table table-striped table-hover'>
  40. <thead class='thead-dark'>
  41. <tr>
  42. <th scope='col'>Documento non caricato perche già presente</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {% for l in listanotok %}
  47. <tr>
  48. <td> {{ l.documento }} </td>
  49. </tr>
  50. {% endfor %}
  51. </tbody>
  52. </table>
  53. {% endif %}
  54. </div>