utente.edit.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. {% if IntegrityError %}
  12. <script language="Javascript">
  13. $(window).on('load', function() {
  14. $('#IError').modal('show');
  15. });
  16. </script>
  17. {% endif %}
  18. {% endblock %}
  19. {% block body %}
  20. <!-- Nav tabs -->
  21. <div class="button-group" role="tablist">
  22. <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>
  23. <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>
  24. <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>
  25. <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>
  26. </div>
  27. <div class='text-danger'>
  28. {% if mailnonvalida %}
  29. <div class='text-center h5'>
  30. <b>Attenzione, la mail non risulta inserita/corretta.</b>
  31. </div>
  32. {% endif %}
  33. </div>
  34. <!-- end nav tabs -->
  35. <div>&nbsp;</div>
  36. <!-- Tab panes -->
  37. <div class="tab-content" id='mycontent'>
  38. {% include 'utente.edit.profile.html' %}
  39. {% include 'utente.edit.document.html' %}
  40. {% include 'utente.edit.logger.html' %}
  41. </div>
  42. {% endblock %}
  43. {% block bodybottom %}
  44. <div>
  45. {% if listaok %}
  46. <div>Sono stati caricati {{ listaoklen }} documento/i</div>
  47. <table class='table table-striped table-hover'>
  48. <thead class='thead-dark'>
  49. <tr>
  50. <th scope='col'>Documento caricato con successo</th>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. {% for l in listaok %}
  55. <tr>
  56. <td> {{ l.documento }} </td>
  57. </tr>
  58. {% endfor %}
  59. </tbody>
  60. </table>
  61. {% endif %}
  62. <div><br></div>
  63. {% if listanotok %}
  64. <div>Sono stati rifiutati {{ listanotoklen }} documento/i</div>
  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.documento }} </td>
  75. </tr>
  76. {% endfor %}
  77. </tbody>
  78. </table>
  79. {% endif %}
  80. </div>
  81. {% endblock %}