utente.download.html 4.7 KB

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