comunicazione.welcome.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {% extends 'base.html' %}
  2. {% block body %}
  3. <form name="comunicazione" method="POST">
  4. <table class='table table-striped table-hover'>
  5. <thead class='thead-dark'>
  6. <tr>
  7. <th scope='col'>From</th>
  8. <th scope='col'>Soggetto</th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. {% csrf_token %}
  13. {% for com in comunicazione %}
  14. <tr>
  15. <td> {{ com.from }} </td>
  16. <td> {{ com.soggetto }}</td>
  17. <td><button type='button' class='btn btn-primary' name="Edit" value="{{ com.id }}" data-bs-toggle='modal' data-bs-target='#EditPage{{ com.id }}'> >Edit</button></td>
  18. {% include 'comunicazione.edit.html' %}
  19. </tr>
  20. {% endfor %}
  21. </tbody>
  22. </table>
  23. <div>
  24. <button type='button' class='btn btn-primary' name='nuovo' value='nuovo' data-bs-toggle='modal' data-bs-target='#EditPage'>Nuovo</button>
  25. <input type='reset' class='btn btn-primary' name='reset' value='reset'>
  26. <input type='submit' class="btn btn-primary" name="Ritorna" value="Ritorna">
  27. {% include 'comunicazione.edit.html' %}
  28. </div>
  29. </form>
  30. {% endblock %}
  31. {% block bodybottom %}
  32. {% endblock %}