2
0

sql.server.list.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {% extends 'base.html' %}
  2. {% block top %}
  3. <p>
  4. utente che sta effettuando gli aggiornamenti {{ utenteautorizzato.mail }}@{{ utenteautorizzato.domain.nome }}
  5. </p>
  6. {% if dominio %}
  7. <p>
  8. Dominio su cui si sta' lavorando: {{ dominio.nome }}
  9. </p>
  10. {% endif %}
  11. {% if user %}
  12. <p>
  13. si stanno effettuando aggiornamenti su: {{ user.mail }}@{{ user.domain.nome }}
  14. </p>
  15. {% endif %}
  16. {% endblock %}
  17. {% block body %}
  18. <form name='sqllist' method='post'>
  19. {% csrf_token %}
  20. {% if not 'EDITNEW' in securitylist %}
  21. <button class="btn btn-primary" type="submit" name='NuovoSqlServer' value="Nuovo Server SQL">Nuovo Server Sql</button>
  22. {% endif %}
  23. </form>
  24. <table class='table'>
  25. <thead>
  26. <tr>
  27. <th scope='col'>Nome</th>
  28. <th scope='col'>Server</th>
  29. <th scope='col'>Attività</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <form name="sqlserverlist" method="POST">
  34. {% csrf_token %}
  35. {% for u in sqlserverlist %}
  36. <tr>
  37. <th scope='row'>{{ u.nome }}</th>
  38. <td> {{ u.server }} </td>
  39. <td><button class="btn btn-primary" type="submit" name='edit' value="{{ u.id }}"{% if not u.enabled %} disabled {% endif %}>Edit</button>
  40. <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>
  41. <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>
  42. </tr>
  43. {% endfor %}
  44. </form>
  45. </tbody>
  46. {% endblock %}