utente.download.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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">Logging</button>
  21. </li>
  22. </ul>
  23. <!-- Tab panes -->
  24. <div class="tab-content">
  25. <div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab" tabindex="0">
  26. <div><br><br></div>
  27. <div class='form-outline mb-3 text-center btn-primary h3'>
  28. Documenti Disponibili al Download
  29. </div>
  30. <div>
  31. <table class='table table-striped table-hover'>
  32. <thead class='thead-dark'>
  33. <tr>
  34. <th scope='col'>Documento</th>
  35. <th scope='col'>Descrizione</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. {% for documento in documentiUtente %}
  40. <tr>
  41. <!--<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>-->
  42. <td><a href={% url "documento:finalize" documento.id utente.id %}>{{ documento.documento}}</td>
  43. <td> {{ documento.descrizione }} </td>
  44. </tr>
  45. {% endfor %}
  46. </tbody>
  47. </table>
  48. </div>
  49. </div>
  50. <div class="tab-pane" id="profile" role="tabpanel" aria-labelledby="profile-tab" tabindex="0">
  51. <div><br><br></div>
  52. <div class='form-outline mb-3 text-center btn-primary h3'>
  53. Profilo Personale
  54. </div>
  55. <form name='download' method='post' class='form-container card p-3 bg-light'>
  56. {% csrf_token %}
  57. <div class='form-outline mb-3'>
  58. <label class='form-label' for='nome'>nome</label>
  59. <input type='text' class='form-control' id='nome' name='nome' value='{{ utente.nome }}' readonly>
  60. </div>
  61. <div class='form-outline mb-3'>
  62. <label class='form-label' for='cfisc'>nome</label>
  63. <input type='text' class='form-control' id='cfisc' name='cfisc' value='{{ utente.codicefiscale }}' readonly>
  64. </div>
  65. <div class='form-outline mb-3'>
  66. <label class='form-label' for='luogonascita'>Luogo di Nascita</label>
  67. <input type='text' class='form-control' id='luogonascita' name='luogonascita' value='{{ utente.luogonascita }}' readonly>
  68. </div>
  69. <div class='form-outline mb-3'>
  70. <label class='form-label' for='datanascita'>Data di Nascita</label>
  71. <input type='text' class='form-control' id='datanascita' name='datanascita' value='{{ utente.datanascita }}' readonly>
  72. </div>
  73. <div class='form-outline mb-3'>
  74. <label class='form-label' for='pin'>pin/Password</label>
  75. <input type='text' class='form-control' id='pin' name='pin' value='{{ utente.pin }}'>
  76. </div>
  77. <div class='form-outline mb-3'>
  78. <label class='form-label' for='mail'>Mail</label>
  79. <input type='text' class='form-control' id='mail' name='mail' value='{{ utente.mail }}'>
  80. </div>
  81. <div>
  82. <input type='submit' class="btn btn-secondary" value='Aggiorna'>
  83. <input type='submit' class="btn btn-primary" name="ritorna" value="Logout">
  84. </div>
  85. </form>
  86. </div>
  87. <div class="tab-pane" id="messages" role="tabpanel" aria-labelledby="messages-tab" tabindex="0">
  88. <div><br><br></div>
  89. <div class='form-outline mb-3 text-center btn-primary h3'>
  90. Ultime attività registrate
  91. </div>
  92. <div>
  93. <table class='table table-striped table-hover mb-2'>
  94. <thead class='thead-dark'>
  95. <tr>
  96. <th scope='col'>Data</th>
  97. <th scope='col'>Causale</th>
  98. <th scope='col'>Utente</th>
  99. <th scope='col'>Amministratore</th>
  100. <th scope='col'>documento</th>
  101. </tr>
  102. </thead>
  103. <tbody>
  104. {% for attivita in listaAttivita %}
  105. <tr>
  106. <td> {{ attivita.data | date:'d/m/Y H:i' }} </td>
  107. <td> {{ attivita.causale.nome }} </td>
  108. <td> {{ attivita.utente.nome }} </td>
  109. <td> {{ attivita.amministratore.name }}</td>
  110. <td> {{ attivita.documento.documento }}</td>
  111. </tr>
  112. {% endfor %}
  113. </tbody>
  114. </table>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. {% endblock %}