Note.View.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {% extends 'base.html' %}
  2. {% block top %}
  3. <p>
  4. utente che sta effettuando gli aggiornamenti {{ utenteautorizzato.mail }}@{{ utenteautorizzato.domain.nome }}
  5. </p>
  6. {% if dominio %}
  7. <p>
  8. Dominio su cui si sta' lavorando: {{ dominio.nome }}
  9. </p>
  10. {% endif %}
  11. {% if alias %}
  12. <p>
  13. si stanno effettuando aggiornamenti su: {{ user.mail }}@{{ user.domain.nome }}
  14. </p>
  15. {% endif %}
  16. {% endblock %}
  17. {% block body %}
  18. {% if nota %}
  19. <ul class='list-group'>
  20. <li class='list-group-item'>
  21. {{ nota.soggetto }}
  22. </li>
  23. <li class='list-group-item'>
  24. {{ nota.oggetto }}
  25. </li>
  26. <li class='list-group-item'>
  27. {{ nota.timestamp }}
  28. </li>
  29. </ul>
  30. {% else %}
  31. <table class='table'>
  32. <thead>
  33. <tr>
  34. <th scope='col'>Nota</th>
  35. <th scope='col'>Data</th>
  36. <th scope='col'>Livello</th>
  37. <th scope='col'>*</th>
  38. <th scope='col'>Attività</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. {% for n in note %}
  43. <tr>
  44. <th scope='row'><a href={% url 'Note:NoteView' n.id %}>{{ n.soggetto }}</th>
  45. <td> {{ n.timestamp }} </td>
  46. <td> {{ n.livello.nome }} </td>
  47. </tr>
  48. {% endfor %}
  49. </tbody>
  50. {% endif %}
  51. {% endblock %}