utente.download.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. {% extends 'base.html' %}
  2. {% block top %}
  3. <div class='form-outline mb-3 text-center btn-primary h3'>
  4. {{ HeaderTitle }}
  5. </div>
  6. <div class='form-outline mb-3 text-center btn-primary h3'>
  7. Area Utente {{ azienda.azienda }}
  8. </div>
  9. {% endblock %}
  10. {% block body %}
  11. <!-- Nav tabs -->
  12. <ul class="nav nav-tabs" id="myTab" role="tablist">
  13. <li class="nav-item" role="presentation">
  14. <button class="nav-link active" id="home-tab" data-bs-toggle="tab" data-bs-target="#home" type="button" role="tab" aria-controls="home" aria-selected="true">Documenti</button>
  15. </li>
  16. <li class="nav-item" role="presentation">
  17. <button class="nav-link" id="profile-tab" data-bs-toggle="tab" data-bs-target="#profile" type="button" role="tab" aria-controls="profile" aria-selected="false">Profilo</button>
  18. </li>
  19. <li class="nav-item" role="presentation">
  20. <button class="nav-link" id="messages-tab" data-bs-toggle="tab" data-bs-target="#messages" type="button" role="tab" aria-controls="messages" aria-selected="false">Attività</button>
  21. <li>
  22. <li class="nav-item" role="presentation">
  23. <button class="nav-link" id="messages-tab" data-bs-toggle="tab" data-bs-target="#byebye" type="button" role="tab" aria-controls="byebye" aria-selected="false">Uscita</button>
  24. </li>
  25. </ul>
  26. <! -- end nav tabs -->
  27. <!-- Tab panes -->
  28. <div class="tab-content">
  29. <div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab" tabindex="0">
  30. <div><br><br></div>
  31. <div class='form-outline mb-3 text-center btn-primary h3'>
  32. Documenti Disponibili al Download
  33. </div>
  34. <div>
  35. <table class='table table-striped table-hover'>
  36. <thead class='thead-dark'>
  37. <tr>
  38. <th scope='col'>Documento</th>
  39. <th scope='col'>Descrizione</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. {% for documento in documentiUtente %}
  44. <tr>
  45. <!--<td> <button type='button' class='btn btn-primary btn-block mb-2 active' onclick="window.open('{% url "documento:finalize" documento.id utente.id %}')">{{ documento.documento }}</button></td>-->
  46. <td><a href={% url "documento:finalize" documento.id utente.id %}>{{ documento.documento}}</td>
  47. <td> {{ documento.descrizione }} </td>
  48. </tr>
  49. {% endfor %}
  50. </tbody>
  51. </table>
  52. </div>
  53. </div>
  54. <div class="tab-pane" id="profile" role="tabpanel" aria-labelledby="profile-tab" tabindex="0">
  55. <div><br><br></div>
  56. <div class='form-outline mb-3 text-center btn-primary h3'>
  57. Profilo Personale
  58. </div>
  59. <form name='download' method='post' class='form-container card p-3 bg-light'>
  60. {% csrf_token %}
  61. <div class='form-outline mb-3'>
  62. <label class='form-label' for='nome'>nome</label>
  63. <input type='text' class='form-control' id='nome' name='nome' value='{{ utente.nome }}' readonly>
  64. </div>
  65. <div class='form-outline mb-3'>
  66. <label class='form-label' for='cfisc'>nome</label>
  67. <input type='text' class='form-control' id='cfisc' name='cfisc' value='{{ utente.codicefiscale }}' readonly>
  68. </div>
  69. <div class='form-outline mb-3'>
  70. <label class='form-label' for='luogonascita'>Luogo di Nascita</label>
  71. <input type='text' class='form-control' id='luogonascita' name='luogonascita' value='{{ utente.luogonascita }}' readonly>
  72. </div>
  73. <div class='form-outline mb-3'>
  74. <label class='form-label' for='datanascita'>Data di Nascita</label>
  75. <input type='text' class='form-control' id='datanascita' name='datanascita' value='{{ utente.datanascita }}' readonly>
  76. </div>
  77. <div class='form-outline mb-3'>
  78. <label class='form-label' for='pin'>pin/Password</label>
  79. <input type='text' class='form-control' id='pin' name='pin' value='{{ utente.pin }}'>
  80. </div>
  81. <div class='form-outline mb-3'>
  82. <label class='form-label' for='mail'>Mail</label>
  83. <input type='text' class='form-control' id='mail' name='mail' value='{{ utente.mail }}'>
  84. </div>
  85. <div>
  86. <input type='submit' class="btn btn-secondary" name='aggiorna' value='Aggiorna'/>
  87. <input type='submit' class="btn btn-primary" name="ritorna" value="Logout">
  88. </div>
  89. </form>
  90. </div>
  91. <div class="tab-pane" id="messages" role="tabpanel" aria-labelledby="messages-tab" tabindex="0">
  92. <div><br><br></div>
  93. <div class='form-outline mb-3 text-center btn-primary h3'>
  94. Ultime attività registrate
  95. </div>
  96. <div>
  97. <table class='table table-striped table-hover mb-2'>
  98. <thead class='thead-dark'>
  99. <tr>
  100. <th scope='col'>Data</th>
  101. <th scope='col'>Causale</th>
  102. <th scope='col'>Utente</th>
  103. <th scope='col'>Amministratore</th>
  104. <th scope='col'>documento</th>
  105. </tr>
  106. </thead>
  107. <tbody>
  108. {% for attivita in listaAttivita %}
  109. <tr>
  110. <td> {{ attivita.data | date:'d/m/Y H:i' }} </td>
  111. <td> {{ attivita.causale.nome }} </td>
  112. <td> {{ attivita.utente.nome }} </td>
  113. <td> {{ attivita.amministratore.name }}</td>
  114. <td> {{ attivita.documento.documento }}</td>
  115. </tr>
  116. {% endfor %}
  117. </tbody>
  118. </table>
  119. </div>
  120. </div>
  121. <div class="tab-pane" id="byebye" role="tabpanel" aria-labelledby="byebye-tab" tabindex="0">
  122. <div><br><br></div>
  123. <div class='form-outline mb-3 text-center btn-primary h3'>
  124. <a href="{% url 'login:start' %}">Fine Sessione</a>
  125. </div>
  126. <div class='form-outline mb-3 text-center btn-primary h3'>
  127. Grazie per aver usato i nostri servizi
  128. </div>
  129. </div>
  130. </div>
  131. {% endblock %}
  132. {% block bodybottom %}
  133. {% if mailnonvalida %}
  134. <div class='text-center h5'>
  135. <b>Attenzione, la mail non risulta inserita/corretta. Si prega di correggerla cliccando sul tasto "Profilo".</b>
  136. </div>
  137. {% endif %}
  138. {% endblock %}