| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- {% extends 'base.html' %}
- {% block top %}
- <div class='form-outline mb-3 text-center btn-primary h3'>
- {{ HeaderTitle }}
- </div>
- <div class='form-outline mb-3 text-center btn-primary h3'>
- Amministratore: {{ admin.username }}
- </div>
- {% endblock %}
- {% block body %}
- <!-- errori form sede -->
- {% if sede.errors %}
- <div class="alert alert-danger">
- {{ sede.errors }}
- </div>
- {% endif %}
- <!-- fine zona errori -->
- <!-- profilo sede -->
- <form name='AmministratoreEdit' method='post'>
- {% csrf_token %}
- <div class='form-group'>
- <label for="login">Login Amministratore</label>
- <input type='text' class='form-control form-control-lg' name='login' id='login' value='{{ amministratore.login.value }}' {% if admin.sola_lettura %}readonly{% endif %}>
- </div>
- <div class='form-group'>
- <label for="nome">Nome</label>
- <input type='text' class='form-control form-control-lg' name='nome' id='nome' value='{{ amministratore.nome.value }}' {% if admin.sola_lettura %}readonly{% endif %}>
- </div>
- <div class='form-group'>
- <label for="mail">Email</label>
- <input type='text' class='form-control form-control-lg' name='mail' id='mail' value='{{ amministratore.mail.value }}' {% if admin.sola_lettura %}readonly{% endif %}>
- </div>
- <div class='form-group'>
- <label for="pin">Pin/Password</label>
- <input type='text' class='form-control form-control-lg' name='pin' id='pin' value='{{ amministratore.pin.value }}' {% if admin.sola_lettura %}readonly{% endif %}>
- </div>
- <div class="btn-group">
- <br>
- <input type='submit' class="btn btn-primary" value='Aggiorna' {% if admin.sola_lettura %} disable {% endif %}>
- <input type='submit' class="btn btn-primary" name="indietro" value="Indietro">
- </div>
- </form>
-
- </div>
- {% endblock %}
- {% block bodybottom %}
- <br>
- <div class="card">
- <div class="class="card-header">
- Lista Aziende
- </div>
- <ul class="list-group list-group-flush">
- <li class="list-group-item">
- <table class='table table-striped table-hover'>
- <thead class='thead-dark'>
- <tr>
- <th scope='col'>Nome</th>
- <th scope='col'>P.Iva</th>
- </tr>
- </thead>
- <tbody>
- {% for a in listaazienda %}
- <tr>
- <td> {{ a.nome }} </td>
- <td> {{ a.partitaiva }} </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- </li>
- </ul>
- </div>
- {% endblock %}
|