utente.welcome.html 2.6 KB

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