sql.database.backup.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {% extends 'base.html' %}
  2. {% block top %}
  3. {% endblock %}
  4. {% block body %}
  5. <p>
  6. Numero totale di db sottoposti a backup: {{ sqldatabasecount }}
  7. <table class='table'>
  8. <thead>
  9. <tr>
  10. <th scope='col'>Nome</th>
  11. <th scope='col'>Username</th>
  12. <th scope='col'>Server</th>
  13. <th scope='col'>L</th>
  14. <th scope='col'>E</th>
  15. <th scope='col'>D</th>
  16. <th scope='col'>quota</th>
  17. <th scope='col'>backup manuale</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. {% for u in sqldatabaselist %}
  22. <tr>
  23. <td> {{ u.nome }} - id: {{ u.id }} </td>
  24. <td> {{ u.username }} </td>
  25. <td> {{ u.server.nome }}</td>
  26. <td>{% if u.locked %}*{% else %}-{% endif %}</td>
  27. <td>{% if u.enabled %}*{% else %}-{% endif %}</td>
  28. <td>{% if u.tobedeleted%}*{% else %}-{% endif %}</td>
  29. <td>{{ u.quota }}</td>
  30. <td>{% if u.inbackup %}In corso{% else %} {% if u.datebackup %}{{ u.datebackup }}{% endif %}{% endif %}</td>
  31. </tr>
  32. {% endfor %}
  33. </tbody>
  34. {% endblock %}
  35. {% block bodybottom %}
  36. <ul class="list-group">
  37. <li class="list-group-item">L: Locked - non si possono modificare i parametri registrati</li>
  38. <li class="list-group-item">E: Enabled - il database è abilitato e utilizzabile</li>
  39. <li class="list-group-item">D: ToBeDeleted - il database è disattivato e pronto per essere cancellato</li>
  40. </ul>
  41. {% endblock %}