utente.edit.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {% extends 'base.html' %}
  2. {% block headersupplement %}
  3. <script language="JavaScript">
  4. function toggle(source) {
  5. checkboxes = document.getElementsByName('select');
  6. for(var i=0, n=checkboxes.length;i<n;i++) {
  7. checkboxes[i].checked = source.checked;
  8. }
  9. }
  10. </script>
  11. {% endblock %}
  12. {% block body %}
  13. <!-- Nav tabs -->
  14. <div class="button-group" role="tablist">
  15. <button type='button' class="btn btn-primary active" id="profile-tab" data-bs-toggle="tab" data-bs-target="#profile-pane" role="tab" aria-controls="profile-pane" aria-selected="true">Profilo</button>
  16. <button type='button' class="btn btn-primary" id="document-tab" data-bs-toggle="tab" data-bs-target="#document-pane" role="tab" aria-controls="document-pane" aria-selected="true">Documenti</button>
  17. <button type='button' class="btn btn-primary" id="logger-tab" data-bs-toggle="tab" data-bs-target="#logger-pane" role="tab" aria-controls="logger-pane" aria-selected="true">attivita</button>
  18. <button type='button' class="btn btn-outline-primary" id="return-tab" data-bs-toggle="tab" data-bs-target="#return-pane" role="tab" aria-controls="return-pane" aria-selected="true"><a href="{% url 'utente:welcome' %}">Indietro</a></button>
  19. </div>
  20. <div class='text-danger'>
  21. {% if mailnonvalida %}
  22. <div class='text-center h5'>
  23. <b>Attenzione, la mail non risulta inserita/corretta.</b>
  24. </div>
  25. {% endif %}
  26. </div>
  27. <!-- end nav tabs -->
  28. <div>&nbsp;</div>
  29. <!-- Tab panes -->
  30. <div class="tab-content" id='mycontent'>
  31. {% include 'utente.edit.profile.html' %}
  32. {% include 'utente.edit.document.html' %}
  33. {% include 'utente.edit.logger.html' %}
  34. </div>
  35. {% endblock %}
  36. {% block bodybottom %}
  37. <div>
  38. {% if listaok %}
  39. <div>Sono stati caricati {{ listaoklen }} documento/i</div>
  40. <table class='table table-striped table-hover'>
  41. <thead class='thead-dark'>
  42. <tr>
  43. <th scope='col'>Documento caricato con successo</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. {% for l in listaok %}
  48. <tr>
  49. <td> {{ l.documento }} </td>
  50. </tr>
  51. {% endfor %}
  52. </tbody>
  53. </table>
  54. {% endif %}
  55. <div><br></div>
  56. {% if listanotok %}
  57. <div>Sono stati rifiutati {{ listanotoklen }} documento/i</div>
  58. <table class='table table-striped table-hover'>
  59. <thead class='thead-dark'>
  60. <tr>
  61. <th scope='col'>Documento non caricato perche già presente</th>
  62. </tr>
  63. </thead>
  64. <tbody>
  65. {% for l in listanotok %}
  66. <tr>
  67. <td> {{ l.documento }} </td>
  68. </tr>
  69. {% endfor %}
  70. </tbody>
  71. </table>
  72. {% endif %}
  73. </div>
  74. {% endblock %}