utente.welcome.html 3.0 KB

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