gestioneCodaLista.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. <table class='table'>
  9. <thead>
  10. <tr>
  11. <th scope='col'>#</th>
  12. <th scope='col'>Titolo</th>
  13. <th scope='col'>Inserito il</th>
  14. <th scope='col'>Eseguito il</th>
  15. <th scope='col'>Stato</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. {% for u in coda %}
  20. <tr>
  21. <th scope='row'>{{ u.id }}</th>
  22. <td>{{ u.codacomandi.titolo }}</td>
  23. <td>{{ u.dataInserimento }}</td>
  24. <td>{{ u.dataEsecuzione }}</td>
  25. <td>{{ u.stato }}</td>
  26. <td>{{ u.risultato }}</td>
  27. <td>{% if u.enabled %}*{% else %}-{% endif %}</td>
  28. <td><button class="btn btn-primary" type="submit" name='disable' value="{{ u.id }}" {% if not u.enabled %} disabled {% endif %}>Disable</button>
  29. <button class="btn btn-primary" type="submit" name='enable' value="{{ u.id }}" {% if u.enabled %} disabled {% endif %}>Enable</button></td>
  30. </tr>
  31. {% endfor %}
  32. </form>
  33. </tbody>
  34. </table>
  35. {% endblock %}