utente.welcome.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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'>Sede</th>
  17. <th scope='col'>Data di Nascita</th>
  18. <th scope='col'>Luogo di Nascita</th>
  19. <th scope='col'>documenti</th>
  20. <th scope='col'>Mail</th>
  21. <th scope='col'>Pin</th>
  22. <th scope='col'>Inserimento</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. {% csrf_token %}
  27. {% for uu in utenti %}
  28. <tr>
  29. <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>
  30. <td> {{ uu.nome }} </td>
  31. <td> {{ uu.codicefiscale }} </td>
  32. <td> {{ uu.sede.nome }} </td>
  33. <td> {{ uu.datanascita|date:'d/m/Y' }} </td>
  34. <td> {{ uu.luogonascita }} </td>
  35. <td> {{ uu.documenti }} </td>
  36. <td> {{ uu.mail }} </td>
  37. <td> {{ uu.pin }} </td>
  38. <td> {{ uu.inserimento|date:'d/m/Y' }} </td>
  39. </tr>
  40. {% endfor %}
  41. </tbody>
  42. </table>
  43. </form>
  44. {% endblock %}
  45. {% block bodybottom %}
  46. <div><br><br></div>
  47. {% if listaok %}
  48. <table class='table table-striped table-hover'>
  49. <thead class='thead-dark'>
  50. <tr>
  51. <th scope='col'>Documento caricato con successo</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. {% for l in listaok %}
  56. <tr>
  57. <td> {{ l }} </td>
  58. </tr>
  59. {% endfor %}
  60. </tbody>
  61. </table>
  62. {% endif %}
  63. <div><br><br></div>
  64. {% if listanotok %}
  65. <table class='table table-striped table-hover'>
  66. <thead class='thead-dark'>
  67. <tr>
  68. <th scope='col'>Documento non caricato perche già presente</th>
  69. </tr>
  70. </thead>
  71. <tbody>
  72. {% for l in listanotok %}
  73. <tr>
  74. <td> {{ l }} </td>
  75. </tr>
  76. {% endfor %}
  77. </tbody>
  78. </table>
  79. {% endif %}
  80. {% if listaok %}
  81. {% for i in listaok %}
  82. {{i }}
  83. {% endfor %}
  84. {% endif %}
  85. {% if listanotok %}
  86. {% for i in listanotok %}
  87. {{i }}
  88. {% endfor %}
  89. {% endif %}
  90. {% endblock %}