amministratore.edit.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. Amministratore: {{ admin.username }}
  8. </div>
  9. {% endblock %}
  10. {% block body %}
  11. <!-- errori form sede -->
  12. {% if sede.errors %}
  13. <div class="alert alert-danger">
  14. {{ sede.errors }}
  15. </div>
  16. {% endif %}
  17. <!-- fine zona errori -->
  18. <!-- profilo sede -->
  19. <form name='AmministratoreEdit' method='post'>
  20. {% csrf_token %}
  21. <div class='form-group'>
  22. <label for="login">Login Amministratore</label>
  23. <input type='text' class='form-control form-control-lg' name='login' id='login' value='{{ amministratore.login.value }}' {% if admin.sola_lettura %}readonly{% endif %}>
  24. </div>
  25. <div class='form-group'>
  26. <label for="nome">Nome</label>
  27. <input type='text' class='form-control form-control-lg' name='nome' id='nome' value='{{ amministratore.nome.value }}' {% if admin.sola_lettura %}readonly{% endif %}>
  28. </div>
  29. <div class='form-group'>
  30. <label for="mail">Email</label>
  31. <input type='text' class='form-control form-control-lg' name='mail' id='mail' value='{{ amministratore.mail.value }}' {% if admin.sola_lettura %}readonly{% endif %}>
  32. </div>
  33. <div class='form-group'>
  34. <label for="pin">Pin/Password</label>
  35. <input type='text' class='form-control form-control-lg' name='pin' id='pin' value='{{ amministratore.pin.value }}' {% if admin.sola_lettura %}readonly{% endif %}>
  36. </div>
  37. <div class="btn-group">
  38. <br>
  39. <input type='submit' class="btn btn-primary" value='Aggiorna' {% if admin.sola_lettura %} disable {% endif %}>
  40. <input type='submit' class="btn btn-primary" name="indietro" value="Indietro">
  41. </div>
  42. </form>
  43. </div>
  44. {% endblock %}
  45. {% block bodybottom %}
  46. <br>
  47. <div class="card">
  48. <div class="class="card-header">
  49. Lista Aziende
  50. </div>
  51. <ul class="list-group list-group-flush">
  52. <li class="list-group-item">
  53. <table class='table table-striped table-hover'>
  54. <thead class='thead-dark'>
  55. <tr>
  56. <th scope='col'>Nome</th>
  57. <th scope='col'>P.Iva</th>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. {% for a in listaazienda %}
  62. <tr>
  63. <td> {{ a.nome }} </td>
  64. <td> {{ a.partitaiva }} </td>
  65. </tr>
  66. {% endfor %}
  67. </tbody>
  68. </table>
  69. </li>
  70. </ul>
  71. </div>
  72. {% endblock %}