list.html.j2 714 Bytes
Newer Older
Nicolas Joyard's avatar
Nicolas Joyard committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
{% extends "_base.html.j2" %}

{% block content %}
  <section class="panel panel-default">
    <header class="panel-heading">
      <b>Liste des parlementaires</b>
    </header>
    <table class="table table-striped">
      {% for parl in parlementaires %}

        {% if loop.first %}
          <tr>
            <th>Parlementaire</th>
            <th>Etape</th>
          </tr>
        {% endif %}

        <tr>
          <th>{{ parl.nom }}</th>
          <th>{{ parl.etat }}</th>
        </tr>

      {% else %}

        <tr>
          <td class="warning" colspan="2">
            <em>Aucun parlementaire trouvé :(</em>
          </td>
        </tr>

      {% endfor %}
    </table>
  </section>
{% endblock %}