utente.welcome.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {% extends 'base.html' %}
  2. {% block top %}
  3. <div class='form-outline mb-3 text-center btn-primary h3'>
  4. {{ HeaderTitle }}
  5. </div>
  6. <div clasS='form-outline mb-3 text-center btn-primary h3'>
  7. Azienda in elaborazione: {{ azienda.nome }}
  8. </div>
  9. <div clasS='form-outline mb-3 text-center btn-primary h3'>
  10. Amministratore: {{ admin.username }}
  11. </div>
  12. {% endblock %}
  13. {% block body %}
  14. <form name="inputUtente" method="POST">
  15. <div class='form-control'>
  16. <input type='submit' class="btn btn-secondary" name='scelta' value='Nuovo Utente'>
  17. <input type='submit' class="btn btn-secondary" name='CaricamentiMultipli' value='Caricamenti Multipli'>
  18. <input type='submit' class="btn btn-primary" name="ritorna" value="Ritorna">
  19. </div>
  20. {% csrf_token %}
  21. <table class='table table-striped table-hover'>
  22. <thead class='thead-dark'>
  23. <tr>
  24. <th scope='col'>Id</th>
  25. <th scope='col'>Nome</th>
  26. <th scope='col'>Codice Fiscale</th>
  27. <th scope='col'>Data di Nascita</th>
  28. <th scope='col'>Luogo di Nascita</th>
  29. <th scope='col'>documenti</th>
  30. <th scope='col'>Mail</th>
  31. <th scope='col'>Pin</th>
  32. <th scope='col'>Inserimento</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. {% csrf_token %}
  37. {% for uu in utenti %}
  38. <tr>
  39. <td> <button type='submit' class='btn btn-primary btn-block btn-lg mb-2 active' name='scelta' value='{{ uu.id }}'>Edit</button></td>
  40. <td> {{ uu.nome }} </td>
  41. <td> {{ uu.codicefiscale }} </td>
  42. <td> {{ uu.datanascita|date:'d/m/Y' }} </td>
  43. <td> {{ uu.luogonascita }} </td>
  44. <td> {{ uu.documenti }} </td>
  45. <td> {{ uu.mail }} </td>
  46. <td> {{ uu.pin }} </td>
  47. <td> {{ uu.inserimento|date:'d/m/Y' }} </td>
  48. </tr>
  49. {% endfor %}
  50. </tbody>
  51. </table>
  52. </form>
  53. {% endblock %}
  54. {% block bodybottom %}
  55. <div><br><br></div>
  56. {% if listaok %}
  57. <table class='table table-striped table-hover'>
  58. <thead class='thead-dark'>
  59. <tr>
  60. <th scope='col'>Documento caricato con successo</th>
  61. </tr>
  62. </thead>
  63. <tbody>
  64. {% for l in listaok %}
  65. <tr>
  66. <td> {{ l }} </td>
  67. </tr>
  68. {% endfor %}
  69. </tbody>
  70. </table>
  71. {% endif %}
  72. <div><br><br></div>
  73. {% if listanotok %}
  74. <table class='table table-striped table-hover'>
  75. <thead class='thead-dark'>
  76. <tr>
  77. <th scope='col'>Documento non caricato perche già presente</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. {% for l in listanotok %}
  82. <tr>
  83. <td> {{ l }} </td>
  84. </tr>
  85. {% endfor %}
  86. </tbody>
  87. </table>
  88. {% endif %}
  89. {% if listaok %}
  90. {% for i in listaok %}
  91. {{i }}
  92. {% endfor %}
  93. {% endif %}
  94. {% if listanotok %}
  95. {% for i in listanotok %}
  96. {{i }}
  97. {% endfor %}
  98. {% endif %}
  99. {% endblock %}