| 1234567891011121314151617181920212223242526272829303132333435 |
- {% extends "base.html" %}
- {% block title %}Lista Template{% endblock %}
- {% block top %}
- {% if template %}
- <table class='table table-striped table-hover'>
- <thead class='thead-dark'>
- <tr>
- <form name='ordine' method='POST'>
- {% csrf_token %}
- <th scope='col'><button class='btn btn-link btn-ism' type='submit' name='ordine_id' value='ordine_id'>ID</button></th>
- <th scope='col'><button class='btn btn-link btn-ism' type='submit' name='ordine_alfabetico' value='ordine_alfabetico'>Nome</button></th>
- </form>
- <th scope='col'>Soggetto</th>
- </tr>
- </thead>
- <tbody>
- {% for i in template %}
- <tr scope='row'>
- <td><a href={% url "Template:edit" i.id %}>{{ i.id }}</a></td>
- <td>{{ i.nome }}</td>
- <td>{{ i.soggetto }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% else %}
- Non ci sono Template da mostrare
- {% endif %}
- <p>
- <p>
- Aggiungi un template <a href={% url 'Template:edit' 0 %}>QUI!</a>
- {% endblock %}
|