utente.download.html 4.9 KB

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