2
0

ProxyServer.List.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {% extends 'base.html' %}
  2. {% block top %}
  3. <p>
  4. utente che sta effettuando gli aggiornamenti {{ utenteautorizzato.mail }}@{{ utenteautorizzato.domain.nome }}
  5. </p>
  6. {% endblock %}
  7. {% block body %}
  8. <form name='Nuova Configurazione Web' method='post'>
  9. {% csrf_token %}
  10. <button class="btn btn-primary" type="submit" name='Nuovo' value="Nuovo">Nuova Configurazione Web</button>
  11. </form>
  12. <table class='table'>
  13. <thead>
  14. <tr>
  15. <th scope='col'>Nome</th>
  16. <th scope='col'>Sub</th>
  17. <th scope='col'>Server</th>
  18. <th scope='col'>Http</th>
  19. <th scope='col'>Https</th>
  20. <th scope='col'>Path</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <form name="proxyserverlist" method="POST">
  25. {% csrf_token %}
  26. {% for w in proxyserver %}
  27. <tr>
  28. <th scope='row'>{{ w.nome }}</th>
  29. <td> {{ w.sub }} </td>
  30. <td> {{ w.server }} </td>
  31. <td> {{ w.http }} </td>
  32. <td> {{ w.https }} </td>
  33. <td> {{ w.path }} </td>
  34. <td><button class="btn btn-primary" type="submit" name='edit' value="{{ w.id }}">Edit</button>
  35. <button class="btn btn-primary" type="button" data-toggle="modal" data-target="#ConfirmDisable{{ w.id }}" name='disable' value="{{ w.id }}" {% if not w.enabled %} disabled {% endif %}>Disabilita</button>
  36. <button class="btn btn-primary" type="submit" name='enable' value="{{ w.id }}" {% if w.enabled %} disabled {% endif %}>Abilita</button>
  37. <button class="btn btn-primary" type="button" data-toggle="modal" data-target="#ConfirmDelete{{ w.id }}" name='delete' value="{{ w.id }}" {% if not w.enabled %} disabled {% endif %}>Cancella</button></td>
  38. </tr>
  39. <!-- Modal -->
  40. <div class="modal fade" id="ConfirmDisable{{ w.id }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
  41. <div class="modal-dialog" role="document">
  42. <div class="modal-content">
  43. <div class="modal-header">
  44. <h5 class="modal fade" id="exampleModalLongTitle">Conferma Disattivazione</h5>
  45. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  46. <span aria-hidden="true">&times;</span>
  47. </button>
  48. </div>
  49. <div class="modal-body">
  50. Sei sicuro di voler disattivare questo Filtro?
  51. </div>
  52. <div class="modal-footer">
  53. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  54. <button type="submit" class="btn btn-primary" name="disable" value="{{ w.id }}">Conferma</button>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. <!-- Modal -->
  60. <div class="modal fade" id="ConfirmDelete{{ w.id }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
  61. <div class="modal-dialog" role="document">
  62. <div class="modal-content">
  63. <div class="modal-header">
  64. <h5 class="modal fade" id="exampleModalLongTitle">Conferma cancellazione</h5>
  65. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  66. <span aria-hidden="true">&times;</span>
  67. </button>
  68. </div>
  69. <div class="modal-body">
  70. Sei sicuro di voler Cancellare Questa Regola?
  71. </div>
  72. <div class="modal-footer">
  73. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  74. <button type="submit" class="btn btn-primary" name="delete" value="{{ w.id }}">Conferma</button>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. {% endfor %}
  80. </form>
  81. </tbody>
  82. {% endblock %}