| 123456789101112131415161718192021222324252627282930313233343536 |
- {% extends 'base.html' %}
- {% block body %}
- <form name="comunicazione" method="POST">
- <table class='table table-striped table-hover'>
- <thead class='thead-dark'>
- <tr>
- <th scope='col'>From</th>
- <th scope='col'>Soggetto</th>
- </tr>
- </thead>
- <tbody>
- {% csrf_token %}
- {% for com in comunicazione %}
- <tr>
- <td> {{ com.from }} </td>
- <td> {{ com.soggetto }}</td>
- <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>
- {% include 'comunicazione.edit.html' %}
- </tr>
- {% endfor %}
- </tbody>
- </table>
- <div>
- <button type='button' class='btn btn-primary' name='nuovo' value='nuovo' data-bs-toggle='modal' data-bs-target='#EditPage'>Nuovo</button>
- <input type='reset' class='btn btn-primary' name='reset' value='reset'>
- <input type='submit' class="btn btn-primary" name="Ritorna" value="Ritorna">
- {% include 'comunicazione.edit.html' %}
- </div>
- </form>
- {% endblock %}
- {% block bodybottom %}
- {% endblock %}
|