documento.welcome.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {% extends "base.html" %}
  2. {% block top %}
  3. <div class='form-outline mb-4 text-center btn-primary h3'>
  4. {{ HeaderTitle }}
  5. </div>
  6. <div clasS='form-outline mb-4 text-center btn-primary h3'>
  7. Azienda in elaborazione: {{ azienda.nome }}
  8. </div>
  9. <div clasS='form-outline mb-4 text-center btn-primary h3'>
  10. Amministratore: {{ admin.username }}
  11. </div>
  12. {% endblock %}
  13. {% block body %}
  14. {% if upload_ok %}
  15. <div>
  16. Sono stati caricati {{ xx }} documenti.
  17. Sono stati correttamente assegnati {{ xx }} documenti ai rispettivi utenti.
  18. <table class='table table-striped table-hover'>
  19. </table>
  20. I seguenti documenti non risultano assegnabili:
  21. <table class='table table-striped table-hover'>
  22. </table>
  23. {% endif %}
  24. {% if ElencoDocumentiPerAzienda %}
  25. <table class='table table-striped table-hover'>
  26. <thead class='thead-dark'>
  27. <tr>
  28. <th scope='col'>Id</th>
  29. <th scope='col'>Utente associato</th>
  30. <th scope='col'>Documento</th>
  31. <th scope='col'>Storage</th>
  32. <th scope='col'>Descrizione</th>
  33. <th scope='col'>Inserimento</th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. {% for documento in ElencoDocumentiPerAzienda %}
  38. <tr>
  39. <td> <button type='button' class='btn btn-primary btn-block btn-lg mb-2 active' onclick="window.open('{% url "documento:finalize" documento.id %}')">Vedi</button></td>
  40. <td> {{ documento.utente.nome }} </td>
  41. <td> {{ documento.documento }} </td>
  42. <td> {{ documento.storage}} </td>
  43. <td> {{ uu.descrizione }} </td>
  44. <td> {{ documento.dataupload | date:'d/m/Y' }} </td>
  45. </tr>
  46. {% endfor %}
  47. </tbody>
  48. </table>
  49. {% endif %}
  50. {% endblock %}
  51. {% block bodybottom %}
  52. <div>
  53. <br>
  54. </div>
  55. <form name='upload' method='post' enctype='multipart/form-data'>
  56. {% csrf_token %}
  57. <table class='table table-striped table-hover'>
  58. <tbody>
  59. <tr>
  60. <form name='upload' method='post' enctype='multipart/form-data'>
  61. {% csrf_token %}
  62. <td><label for='indice'>Indice Utenti:&nbsp;</label>
  63. <input type='file' class="btn btn-primary" name='indice' id='indice' value='{{ uf.indice }}' accept='text/csv'></td>
  64. <td><label for='descrizione'>Descrizione:&nbsp;</label>
  65. <input type='text' name='descrizione' id='descrizione' value=''>
  66. <input type='file' class="btn btn-primary" name='allegati' id='allegati' value='{{ uf.allegati }}' accept='application/pdf' multiple></td>
  67. <td><input type='submit' class="btn btn-primary" value='Inserisci'><td>
  68. <td><input type='submit' class="btn btn-primary" name='ritorna' value='Ritorna'></td>
  69. </form>
  70. </tr>
  71. </tbody>
  72. </table>
  73. <div><br><br></div>
  74. {% if listaok %}
  75. <table class='table table-striped table-hover'>
  76. <thead class='thead-dark'>
  77. <tr>
  78. <th scope='col'>Documento caricato con successo</th>
  79. </tr>
  80. </thead>
  81. <tbody>
  82. {% for l in listaok %}
  83. <tr>
  84. <td> {{ l }} </td>
  85. </tr>
  86. {% endfor %}
  87. </tbody>
  88. </table>
  89. {% endif %}
  90. <div><br><br></div>
  91. {% if listanotok %}
  92. <table class='table table-striped table-hover'>
  93. <thead class='thead-dark'>
  94. <tr>
  95. <th scope='col'>Documento non caricato perche già presente</th>
  96. </tr>
  97. </thead>
  98. <tbody>
  99. {% for l in listanotok %}
  100. <tr>
  101. <td> {{ l }} </td>
  102. </tr>
  103. {% endfor %}
  104. </tbody>
  105. </table>
  106. {% endif %}
  107. {% endblock %}