Causali.List.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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="causalelist" method="POST">
  9. <table class='table'>
  10. <thead>
  11. <tr>
  12. <th scope='col'><button class='btn btn-link btn-sm' type='submit' name='Ordine_by_id' value='Ordine_by_id'>#</button></th>
  13. <th scope='col'><button class='btn btn-link btn-sm' type='submit' name='Ordine_by_causale' value='Ordine_by_causale'>causale</button></th>
  14. <th scope='col'>Azioni</th>
  15. <th scope='col'><button class='btn btn-link btn-sm' type='submit' name='Ordine_by_ordine' value='Ordine_by_ordine'>Ord.</button></th>
  16. <th scope='col'>*</th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. {% csrf_token %}
  21. {% for u in causali %}
  22. <tr>
  23. <th scope='row'>{{ u.id }}</th>
  24. <td>{{ u.nome }}</td>
  25. <td><button class='btn btn-primary' type='submit' value='{{ u.id }}' name='causaleedit'>Edit Causale</button>
  26. <td>{{ u.ordine }}</td>
  27. <td>{% if u.enabled %}*{% else %}-{% endif %}</td>
  28. </tr>
  29. {% endfor %}
  30. </tbody>
  31. <p>
  32. <button class='btn btn-primary' type='submit' value='0' name='causaleedit'>Nuova Causale</button>
  33. </p>
  34. </form>
  35. {% endblock %}