123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- {% extends 'admin.html' %}
- {% block breadcrumb %}
- {{ block.super }}
- <li><a href="{% url 'corporation-list' %}">Associations</a></li>
- <li class="active">{{ corporation }}</li>
- {% endblock %}
- {% block content %}
- <div class="panel panel-primary">
- <div class="panel-heading">
- <a href="{% url 'corporation-edit' corporation.pk %}" class="btn btn-success pull-right">Éditer</a>
- <h4>{{ corporation }}</h4>
- </div>
- <table class="table table-bordered">
- <tr>
- <th>Numéro d’adhérent</th>
- <td>
- {% if corporation.adhesion %}
- <a href="{% url 'adhesion-detail' corporation.adhesion.id %}">ADT{{ corporation.adhesion.id }}</a>
- {% else %}
- <em>Non adhérent.</em>
- {% endif %}
- </td>
- </tr>
- </table>
- </div>
- <div class="panel panel-primary">
- <div class="panel-heading">
- <h4>Membres</h4>
- </div>
- <table class="table table-bordered">
- {% for user in corporation.members.all %}
- {% if forloop.first %}
- <tr>
- <th>Nom</th>
- <th>Numéro d’adhérent</th>
- </tr>
- {% endif %}
- <tr>
- <td>
- <a href="{% url 'user-detail' user.pk %}">{{ user.profile }}</a>
- </td>
- <td>
- {% if user.profile.adhesion %}
- <a href="{% url 'adhesion-detail' user.profile.adhesion.pk %}">ADT{{ user.profile.adhesion.pk }}</a>
- {% else %}
- –
- {% endif %}
- </td>
- </tr>
- {% empty %}
- <tr>
- <td><em>Aucun membre.</em></td>
- </tr>
- {% endfor %}
- </table>
- </div>
- {% endblock %}
|