|
|
@@ -17,24 +17,24 @@
|
|
|
{% 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 not "AMMINISTRATORE.EDITSELFLOGIN" in permesso %}readonly{% endif %}>
|
|
|
+ <input type='text' class='form-control form-control-lg' name='login' id='login' value='{{ amministratore.login.value }}' {% if not "AMMINISTRATORE.EDITSELFLOGIN" in permesso or "AMMINISTRATORE.EDIT" in permesso %}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 not "AMMINISTRATORE.EDITSELFNOME" in permesso %}readonly{% endif %}>
|
|
|
+ <input type='text' class='form-control form-control-lg' name='nome' id='nome' value='{{ amministratore.nome.value }}' {% if not "AMMINISTRATORE.EDITSELFNOME" in permesso or "AMMINISTRATORE.EDIT" in permesso %}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 not "AMMINISTRATORE.EDITSELFMAIL" %}readonly{% endif %}>
|
|
|
+ <input type='text' class='form-control form-control-lg' name='mail' id='mail' value='{{ amministratore.mail.value }}' {% if not "AMMINISTRATORE.EDITSELFMAIL" or "AMMINISTRATORE.EDIT" in permesso %}readonly{% endif %}>
|
|
|
</div>
|
|
|
<div class='form-group'>
|
|
|
<label for="pin">Pin/Password</label>
|
|
|
- <input type='password' class='form-control form-control-lg' name='pin' id='pin' value='{{ amministratore.pin.value }}' {% if not "AMMINISTRATORE.EDITSELFPIN" in permesso %}readonly{% endif %}>
|
|
|
+ <input type='password' class='form-control form-control-lg' name='pin' id='pin' value='{{ amministratore.pin.value }}' {% if not "AMMINISTRATORE.EDITSELFPIN" in permesso or "AMMINISTRATORE.EDIT" in permesso %}readonly{% endif %}>
|
|
|
</div>
|
|
|
<p></p>
|
|
|
<div class="btn-group">
|
|
|
<br>
|
|
|
- <input type='submit' name="AmministratoreUpdateButton" class="btn btn-primary" value='Aggiorna' {% if "AMMINISTRATORE.EDITSELF" in permesso %} disable {% endif %}>
|
|
|
+ <input type='submit' name="AmministratoreUpdateButton" class="btn btn-primary" value='Aggiorna' {% if "AMMINISTRATORE.EDITSELF" in permesso or "AMMINISTRATORE.EDIT" in permesso %} disable {% endif %}>
|
|
|
<input type='submit' class="btn btn-primary" name="indietro" value="Indietro">
|
|
|
</div>
|
|
|
</form>
|