amministratore.edit.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {% extends 'base.html' %}
  2. {% block body %}
  3. <!-- errori form sede -->
  4. {% if sede.errors %}
  5. <div class="alert alert-danger">
  6. {{ sede.errors }}
  7. </div>
  8. {% endif %}
  9. <!-- fine zona errori -->
  10. <!-- profilo sede -->
  11. <form name='AmministratoreEdit' method='post'>
  12. {% csrf_token %}
  13. <div class='form-group'>
  14. <label for="login">Login Amministratore</label>
  15. <input type='text' class='form-control form-control-lg' name='login' id='login' value='{{ amministratore.login.value }}' {% if admin.sola_lettura %}readonly{% endif %}>
  16. </div>
  17. <div class='form-group'>
  18. <label for="nome">Nome</label>
  19. <input type='text' class='form-control form-control-lg' name='nome' id='nome' value='{{ amministratore.nome.value }}' {% if admin.sola_lettura %}readonly{% endif %}>
  20. </div>
  21. <div class='form-group'>
  22. <label for="mail">Email</label>
  23. <input type='text' class='form-control form-control-lg' name='mail' id='mail' value='{{ amministratore.mail.value }}' {% if admin.sola_lettura %}readonly{% endif %}>
  24. </div>
  25. <div class='form-group'>
  26. <label for="pin">Pin/Password</label>
  27. <input type='text' class='form-control form-control-lg' name='pin' id='pin' value='{{ amministratore.pin.value }}' {% if admin.sola_lettura %}readonly{% endif %}>
  28. </div>
  29. <div class="btn-group">
  30. <br>
  31. <input type='submit' class="btn btn-primary" value='Aggiorna' {% if admin.sola_lettura %} disable {% endif %}>
  32. <input type='submit' class="btn btn-primary" name="indietro" value="Indietro">
  33. </div>
  34. </form>
  35. </div>
  36. {% endblock %}
  37. {% block bodybottom %}
  38. <br>
  39. <div class="card">
  40. <div class="class="card-header">
  41. Lista dei permessi generici assegnati
  42. </div>
  43. <ul class="list-group list-group-flush">
  44. <li class="list-group-item">
  45. <table class='table table-striped table-hover'>
  46. <thead class='thead-dark'>
  47. <tr>
  48. <th scope='col'>Nome</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. {% for a in listapermessi %}
  53. <tr>
  54. <td> {{ a.nome }} </td>
  55. </tr>
  56. {% endfor %}
  57. </tbody>
  58. </table>
  59. </li>
  60. </ul>
  61. </div>
  62. <br>
  63. <div class="card">
  64. <div class="class="card-header">
  65. Lista delle aziende autorizzate per questo amministratore
  66. </div>
  67. <ul class="list-group list-group-flush">
  68. <li class="list-group-item">
  69. <table class='table table-striped table-hover'>
  70. <thead class='thead-dark'>
  71. <tr>
  72. <th scope='col'>Nome</th>
  73. <th scope='col'>P.Iva</th>
  74. </tr>
  75. </thead>
  76. <tbody>
  77. {% for a in listaazienda %}
  78. <tr>
  79. <td> {{ a.nome }} </td>
  80. <td> {{ a.partitaiva }} </td>
  81. </tr>
  82. {% endfor %}
  83. </tbody>
  84. </table>
  85. </li>
  86. </ul>
  87. </div>
  88. {% endblock %}