| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- {% 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='newnota' method='post'>
- {% csrf_token %}
- <button class="btn btn-primary" type="submit" name='Nuova Nota' value="Nuovo alias">Nuova Nota</button>
- </form>
- <table class='table'>
- <thead>
- <tr>
- <th scope='col'>Nota</th>
- <th scope='col'>Data</th>
- <th scope='col'>Livello</th>
- <th scope='col'>*</th>
- <th scope='col'>Attività</th>
- </tr>
- </thead>
- <tbody>
- <form name="notelist" method="POST">
- {% csrf_token %}
- {% for n in note %}
- <tr>
- <th scope='row'>{{ n.soggetto }}</th>
- <td> {{ n.timestamp }} </td>
- <td> {{ n.livello.nome }} </td>
- <td>{% if n.enabled %}*{% else %}-{% endif %}</td>
- <td><button class="btn btn-primary" type="submit" name='edit' value="{{ n.id }}">Edit</button>
- <button class="btn btn-primary" type="button" data-toggle="modal" data-target="#ConfirmDisable{{ n.id }}" name='disable' value="{{ n.id }}" {% if not u.enabled %} disabled {% endif %} {% if u.locked %} disabled {% endif %}>Disable</button>
- <button class="btn btn-primary" type="submit" name='enable' value="{{ n.id }}" {% if u.enabled %} disabled {% endif %}>Enable</button></td>
- </tr>
- <!-- Modal -->
- <div class="modal fade" id="ConfirmDisable{{ n.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">
- Sei sicuro di voler disattivare questo Alias?
- </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="disable" value="{{ n.id }}">Conferma</button>
- </div>
- </div>
- </div>
- </div>
- {% endfor %}
- </form>
- </tbody>
- {% endblock %}
|