CancellazioneLista.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. {% extends 'base.html' %}
  2. {% block top %}
  3. <p>
  4. utente che autorizzato: {{ utenteautorizzato.mail }}@{{ utenteautorizzato.domain.nome }}
  5. </p>
  6. {% endblock %}
  7. {% block body %}
  8. <div>
  9. <p>Domini da eliminare</p>
  10. <table class='table'>
  11. <thead>
  12. <tr>
  13. <th scope='col'>#</th>
  14. <th scope='col'>Dominio</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <form name="domainlist" method="POST">
  19. {% csrf_token %}
  20. {% for u in dominidacancellare %}
  21. <tr>
  22. <th scope='row'><a href="{% url 'Cancellazione:CancellazioneDominio' u.id %}">{{ u.id }}</a></th>
  23. <td> {{ u.nome }} </td><td>{{ u.date_expire_contract }}</td><td>{{ u.date_expire_registrar }}</td>
  24. </tr>
  25. {% endfor %}
  26. </form>
  27. </tbody>
  28. </table>
  29. </div>
  30. <div>
  31. <p>
  32. Caselle Email Impostate per la Cancellazione
  33. <form name="userlistall" method='POST'>
  34. {% csrf_token %}
  35. <input type="submit" class='btn btn-primary' name='cancellazioneutentetutti' value='Cancella tutti gli utenti elencati!!'>
  36. </form>
  37. </p>
  38. <table class='table'>
  39. <thead>
  40. <tr>
  41. <th scope='col'>#</th>
  42. <th scope='col'>Email</th>
  43. <th scope='col'>Nome Completo</th>
  44. <th scope='col'>Attivato il</th>
  45. <th scope='col'>Disattivato il</th>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. <form name="userlist" method="POST">
  50. {% csrf_token %}
  51. {% for u in utentidacancellare %}
  52. <tr>
  53. <th scope='row'><a href="{% url 'Cancellazione:CancellazioneUtente' u.id %}">{{ u.id }}</a></th>
  54. <td>{{ u.mail }}@{{ u.domain.nome }}</td>
  55. <td>{{ u.nome }}</td>
  56. <td>{{ u.account_date_creation }}</td>
  57. <td>{{ u.account_date_disabled }}</td>
  58. </tr>
  59. {% endfor %}
  60. </form>
  61. </tbody>
  62. </table>
  63. </tbody>
  64. </div>
  65. <div>
  66. <p>
  67. Alias da rimuovere definitivamente
  68. <form name="userlistall" method='POST'>
  69. {% csrf_token %}
  70. <input type="submit" class='btn btn-primary' name='cancellazionealiastutti' value='Cancella tutti gli alias elencati!!'>
  71. </form>
  72. </p>
  73. <table class='table'>
  74. <thead>
  75. <tr>
  76. <th scope='col'>#</th>
  77. <th scope='col'>alias</th>
  78. <th scope='col'>Da</th>
  79. <th scope='col'>A</th>
  80. </tr>
  81. </thead>
  82. <tbody>
  83. <form name="aliaslist" method="POST">
  84. {% csrf_token %}
  85. {% for u in aliasdacancellare %}
  86. <tr>
  87. <th scope='row'><a href="{% url 'Cancellazione:CancellazioneAlias' u.id %}">{{ u.id }}</a></th>
  88. <td> {{ u.mailfrom }} </td>
  89. <td> {{ u.mailto }} </td>
  90. </tr>
  91. {% endfor %}
  92. </form>
  93. </tbody>
  94. </table>
  95. </div>
  96. <div>
  97. <p>Databases da eliminare</p>
  98. <table class='table'>
  99. <thead>
  100. <tr>
  101. <th scope='col'>#</th>
  102. <th scope='col'>Database</th>
  103. <th scope='col'>Utente</th>
  104. <th scope='col'>Dominio</th>
  105. </tr>
  106. </thead>
  107. <tbody>
  108. <form name="sqldatabaselist" method="POST">
  109. {% csrf_token %}
  110. {% for u in sqldatabasedacancellare %}
  111. <tr>
  112. <th scope='row'><a href="{% url 'Cancellazione:CancellazioneDatabase' u.id %}">{{ u.id }}</a></th>
  113. <td> {{ u.nome }} </td>
  114. <td> {{ u.username }} </td>
  115. <td> {{ u.dominio.nome }} </td>
  116. </tr>
  117. {% endfor %}
  118. </form>
  119. </tbody>
  120. </table>
  121. </div>
  122. <div>
  123. <p>Ftp da eliminare</p>
  124. <table class='table'>
  125. <thead>
  126. <tr>
  127. <th scope='col'>#</th>
  128. <th scope='col'>ftp</th>
  129. <th scope='col'>homedir</th>
  130. </tr>
  131. </thead>
  132. <tbody>
  133. <form name="ftpuserlist" method="POST">
  134. {% csrf_token %}
  135. {% for u in eracancellare %}
  136. <tr>
  137. <th scope='row'>{{ u.id }}</th>
  138. <td> {{ u.user }}@{{ u.domain.nome </td>
  139. <td> {{ u.homedir }} </td>
  140. </tr>
  141. {% endfor %}
  142. </form>
  143. </tbody>
  144. </table>
  145. </div>
  146. {% endblock %}