azienda.welcome.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {% extends 'base.html' %}
  2. {% block body %}
  3. <form name="azienda" method="POST">
  4. <table class='table table-striped table-hover'>
  5. <thead class='thead-dark'>
  6. <tr>
  7. <th scope='col'>Azienda</th>
  8. <th scope='col'>Partita Iva</th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. {% csrf_token %}
  13. {% for az in azienda %}
  14. <tr>
  15. <td> {{ az.nome }} </td>
  16. <td> {{ az.partitaita }}</td>
  17. <td><button type="submit" class='btn btn-primary' name="utenti" value="{{ az.id }}">Utenti</button>
  18. <button type='submit' class="btn btn-primary" name="documenti" value='{{ az.id }}'>Documenti</button>
  19. </td>
  20. </tr>
  21. {% endfor %}
  22. </tbody>
  23. </table>
  24. <div>
  25. <input type='submit' class="btn btn-primary" name="ritorna" value="Logout">
  26. </td>
  27. </form>
  28. {% endblock %}
  29. {% block bodybottom %}
  30. <div><br><br></div>
  31. <div class='form-outline mb-3 text-center btn-primary h3'>
  32. Elenco Azioni Registrate
  33. </div>
  34. <div>
  35. <table class='table table-striped table-hover'>
  36. <thead class='thead-dark'>
  37. <tr>
  38. <th scope='col'>Data</th>
  39. <th scope='col'>Causale</th>
  40. <th scope='col'>Utente</th>
  41. <th scope='col'>Amministratore</th>
  42. <th scope='col'>documento</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {% for attivita in listaAttivita %}
  47. <tr>
  48. <td> {{ attivita.data | date:'d/m/Y H:i' }} </td>
  49. <td> {{ attivita.causale.nome }} </td>
  50. <td> {{ attivita.utente.nome }} </td>
  51. <td> {{ attivita.amministratore.username }}</td>
  52. <td> {{ attivita.documento.documento }}</td>
  53. </tr>
  54. {% endfor %}
  55. </tbody>
  56. </table>
  57. {% endblock %}