amministratore.edit.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 Aziende
  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. <th scope='col'>P.Iva</th>
  50. </tr>
  51. </thead>
  52. <tbody>
  53. {% for a in listaazienda %}
  54. <tr>
  55. <td> {{ a.nome }} </td>
  56. <td> {{ a.partitaiva }} </td>
  57. </tr>
  58. {% endfor %}
  59. </tbody>
  60. </table>
  61. </li>
  62. </ul>
  63. </div>
  64. {% endblock %}