azienda.welcome.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {% extends 'base.html' %}
  2. {% block body %}
  3. <div class='form-outline mb-3 text-center btn-primary h3'>
  4. {% if not azienda %}
  5. Attenzione, Selezionare una azienda dal pannello superiore!
  6. {% else %}
  7. <form name="azienda" method="POST">
  8. {% csrf_token %}
  9. <button type="submit" class='btn btn-primary' name="utenti" value="{{ azienda.id }}">Utenti</button>
  10. <button type='submit' class="btn btn-primary" name="documenti" value='{{ azienda.id }}'>Documenti</button>
  11. {% if listaAttivitaxAzienda %}
  12. <button type 'submit' class='btn btn-primary' name="xx" value='{{ azienda.id }}'>Attività proprie</button>
  13. {% else %}
  14. <button type='submit' class='btn btn-primary' name="attivita" value='{{ azienda.id }}'>Tutte le Attività</button>
  15. {% endif %}
  16. <button type='submit' class='btn btn-primary' name='comunicazioni' value='{{ azienda.id }}'>Comunicazioni</button>
  17. <button type='submit' class='btn btn-primary' name='parazienda' value='{{ azienda.id }}'>Par.Azienda</button>
  18. </form>
  19. {% endif %}
  20. </div>
  21. {% endblock %}
  22. {% block bodybottom %}
  23. <div><br><br></div>
  24. <div class='form-outline mb-3 text-center btn-primary h3'>
  25. {% if listaAttivitaxAzienda %}
  26. Elenco di tutte le attività registrate per l'azienda ...
  27. {% else %}
  28. Elenco attivita' registrate sul proprio account
  29. {% endif %}
  30. </div>
  31. <div>
  32. {% if listaAttivitaxAzienda %}
  33. <table class='table table-striped table-hover'>
  34. <thead class='thead-dark'>
  35. <tr>
  36. <th scope='col'>Data</th>
  37. <th scope='col'>Causale</th>
  38. <th scope='col'>Utente</th>
  39. <th scope='col'>Amministratore</th>
  40. <th scope='col'>documento</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. {% for attivita in listaAttivitaxAzienda %}
  45. <tr>
  46. <td> {{ attivita.data | date:'d/m/Y H:i' }} </td>
  47. <td> {{ attivita.causale.nome }} </td>
  48. <td> {{ attivita.utente.nome }} </td>
  49. <td> {{ attivita.amministratore.username }}</td>
  50. <td> {{ attivita.documento.documento }}</td>
  51. </tr>
  52. {% endfor %}
  53. </tbody>
  54. </table>
  55. {% else %}
  56. <table class='table table-striped table-hover'>
  57. <thead class='thead-dark'>
  58. <tr>
  59. <th scope='col'>Data</th>
  60. <th scope='col'>Causale</th>
  61. <th scope='col'>Utente</th>
  62. <th scope='col'>Amministratore</th>
  63. <th scope='col'>documento</th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. {% for attivita in listaAttivitaxAmministrazione %}
  68. <tr>
  69. <td> {{ attivita.data | date:'d/m/Y H:i' }} </td>
  70. <td> {{ attivita.causale.nome }} </td>
  71. <td> {{ attivita.utente.nome }} </td>
  72. <td> {{ attivita.amministratore.username }}</td>
  73. <td> {{ attivita.documento.documento }}</td>
  74. </tr>
  75. {% endfor %}
  76. </tbody>
  77. </table>
  78. {% endif %}
  79. </div>
  80. {% endblock %}