utente.welcome.html~ 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. <form name="inputUtente" method="POST">
  15. {% csrf_token %}
  16. <table class='table table-striped table-hover'>
  17. <thead class='thead-dark'>
  18. <tr>
  19. <th scope='col'>Id</th>
  20. <th scope='col'>Nome</th>
  21. <th scope='col'>Codice Fiscale</th>
  22. <th scope='col'>Data di Nascita</th>
  23. <th scope='col'>Luogo di Nascita</th>
  24. <th scope='col'>documenti</th>
  25. <th scope='col'>Mail</th>
  26. <th scope='col'>Password</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {% csrf_token %}
  31. {% for uu in utenti %}
  32. <tr>
  33. <td> <input type='submit' name='scelta' value='{{ uu.id }}'></td>
  34. <td> {{ uu.nome }} </td>
  35. <td> {{ uu.codicefiscale }} </td>
  36. <td> {{ uu.datanascita|date:'d/m/Y' }} </td>
  37. <td> {{ uu.luogonascita }} </td>
  38. <td> {{ uu.documenti }} </td>
  39. <td> {{ uu.mail }} </td>
  40. <td> {{ uu.password }} </td>
  41. </tr>
  42. {% endfor %}
  43. </tbody>
  44. </table>
  45. </form>
  46. <div class='form-control'>
  47. <input type='submit' name='scelta' value='0'>
  48. <a href='documento:upload'>Upload Multipli</a>
  49. </div>
  50. {% endblock %}
  51. {% block bodybottom %}
  52. <div>
  53. &nbsp;
  54. </div>
  55. <br>
  56. <form name='upload' method='post' enctype='multipart/form-data'>
  57. {% csrf_token %}
  58. <table class='table table-striped table-hover'>
  59. <tbody>
  60. <tr>
  61. <form name='upload' method='post' enctype='multipart/form-data'>
  62. {% csrf_token %}
  63. <td><input type='file' name='indice' id='indice' value='{{ uf.indice }}' accept='text/csv'></td>
  64. <td><input type='file' name='allegati' id='allegati' value='{{ uf.allegati }}' accept='application/pdf' multiple></td>
  65. <td><input type='submit' value='Inserisci'><td>
  66. </form>
  67. <td>
  68. <button type='button' class='btn btn-secondary' name='umf'
  69. data-toggle='modal' data-target='#UploadMultipleFile'>
  70. Multi Upload</Button>
  71. </td>
  72. </tr>
  73. </tbody>
  74. </table>
  75. <!-- modal -->
  76. <div class="modal fade" id="UploadMultipleFile" tabindex="-1" role="dialog"
  77. aria-labelledby="Upload Multi File" aria-hidden="true">
  78. <div class="modal-dialog" role="document">
  79. <div class="modal-content">
  80. <form name='upload' method='post' enctype='multipart/form-data'>
  81. {% csrf_token %}
  82. <div class="modal-header">
  83. <h5 class="modal-title"
  84. id="TitleUploadMultipleFile">Upload Multi File</h5>
  85. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  86. <span aria-hidden="true">&times;</span>
  87. </button>
  88. </div>
  89. <div class="modal-body">
  90. <td><input type='file' name='indice' id='indice' value='{{ uf.indice }}' accept='text/csv'></td>
  91. <td><input type='file' name='allegati' id='allegati' value='{{ uf.allegati }}' accept='application/pdf' multiple></td>
  92. <td><input type='submit' value='Inserisci'>
  93. </div>
  94. <div class="modal-footer">
  95. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  96. <button type="submit" class="btn btn-primary" name="upload"
  97. value="Inserisci">Inserisci</button>
  98. </div>
  99. </form>
  100. </div>
  101. </div>
  102. </div>
  103. <!-- end Modal -->
  104. {% endblock %}