| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- {% 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 user %}
- <p>
- si stanno effettuando aggiornamenti su: {{ user.mail }}@{{ user.domain.nome }}
- </p>
- {% endif %}
- {% endblock %}
- {% block body %}
- <form name='sqllist' method='post'>
- {% csrf_token %}
- {% if not 'EDITNEW' in securitylist %}
- <button class="btn btn-primary" type="submit" name='NuovoSqlServer' value="Nuovo Server SQL">Nuovo Server Sql</button>
- {% endif %}
- </form>
- <table class='table'>
- <thead>
- <tr>
- <th scope='col'>Nome</th>
- <th scope='col'>Server</th>
- <th scope='col'>Attività</th>
- </tr>
- </thead>
- <tbody>
- <form name="sqlserverlist" method="POST">
- {% csrf_token %}
- {% for u in sqlserverlist %}
- <tr>
- <th scope='row'>{{ u.nome }}</th>
- <td> {{ u.server }} </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 {% if not u.enabled %} btn-secondary {% else %} btn-primary {% endif %}" type="submit" name='disabled' value="{{ u.id }}" {% if not u.enabled %} disabled {% endif %}>Disabilitato</button>
- <button class="btn {% if u.enabled %} btn-secondary {% else %} btn-primary {% endif %}" type="submit" name='enabled' value="{{ u.id }}" {% if u.enabled %} disabled {% endif %}>Abilitato</button></td>
- </tr>
- {% endfor %}
- </form>
- </tbody>
- {% endblock %}
|