| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- {% extends 'base.html' %}
- {% block top %}
- <p>
- utente che sta effettuando gli aggiornamenti {{ utenteautorizzato.mail }}@{{ utenteautorizzato.domain.nome }}
- </p>
- {% if dominio %}
- <p>
- Dominio su cui si sta' lavorando: {{ dominio.nome }}
- </p>
- {% endif %}
- {% if alias %}
- <p>
- si stanno effettuando aggiornamenti su: {{ user.mail }}@{{ user.domain.nome }}
- </p>
- {% endif %}
- {% endblock %}
- {% block body %}
- <form name='newdomain' method='post'>
- {% csrf_token %}
- {% if not 'EDITALIASNEW' in securitlist %}
- <button class="btn btn-primary" type="submit" name='Nuovo alias' value="Nuovo alias">Nuovo Alias</button>
- {% endif %}
- <button class="btn btn-primary" type="submit" name="IndietroButton" value="IndietroButton">Indietro</button>
- </form>
- <table class='table table-striped table-hover'>
- <thead class='thead-dark'>
- <tr>
- <th scope='col'>#</th>
- <th scope='col'>MailFrom</th>
- <th scope='col'>MailTo</th>
- <th scope='col'>*</th>
- <th scope='col'>Attività</th>
- </tr>
- </thead>
- <tbody>
- <form name="aliaslist" method="POST">
- {% csrf_token %}
- {% for u in aliaslist %}
- <tr>
- <th scope='row'>{{ u.id }}</th>
- <td> {{ u.mailfrom }} </td>
- <td> {{ u.mailto }} </td>
- <td>{% if u.enabled %}*{% else %}-{% endif %}</td>
- <td><button class="btn btn-primary" type="submit" name='edit' value="{{ u.id }}" {% if not u.enabled %} disabled {% endif %}>Edit</button>
- <button class="btn btn-primary" type="button" data-toggle="modal" data-target="#ConfirmDisable{{ u.id }}" name='enabledisablebutton' value="{{ u.id }}" >
- {% if u.enabled %}Disabilita{% else %}Abilita{% endif %}</button>
- <button class="btn btn-primary" type='button' data-toggle='modal' data-target="#ConfirmDelete{{ u.id }}" name='deletebutton' value="{{ u.id }}" {% if not u.locked and u.enabled %} disabled {% endif %}>{% if u.tobedeleted %}Recupera{% else %}Cancella{% endif %}</button></td>
- </tr>
- <!-- Modal -->
- <div class="modal fade" id="ConfirmDisable{{ u.id }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal fade" id="exampleModalLongTitle">Conferma Disattivazione</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- {% if u.enabled %}
- Sei sicuro di voler disattivare questo Alias?
- {% else %}
- Vuoi riattivare questo Alias?
- {% endif %}
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
- <button type="submit" class="btn btn-primary" name="enabledisablebutton" value="{{ u.id }}">Conferma</button>
- </div>
- </div>
- </div>
- </div>
- <!-- Modal -->
- <div class="modal fade" id="ConfirmDelete{{ u.id }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal fade" id="exampleModalLongTitle">Impostare per la cancellazione?</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- {% if u.tobedeleted %}
- Confermi che l'ALIAS venga recuperato?
- {% else %}
- Confermi che l'ALIAS venga impostato per la cancellazione?
- {% endif %}
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
- <button type="submit" class="btn btn-primary" name="deletebutton" value="{{ u.id }}">Conferma</button>
- </div>
- </div>
- </div>
- </div>
- {% endfor %}
- </form>
- </tbody>
- {% endblock %}
|