|
@@ -0,0 +1,50 @@
|
|
|
+{% extends 'base.html' %}
|
|
|
+
|
|
|
+{% block adhesiontab %} class="active"{% endblock %}
|
|
|
+
|
|
|
+{% block content %}
|
|
|
+{% if adhesion %}
|
|
|
+
|
|
|
+<div class="panel panel-default">
|
|
|
+ <div class="panel-heading"><h4>À propos de votre adhésion</h4></div>
|
|
|
+ <div class="panel-body">
|
|
|
+ <p>Votre numéro d’adhérent : ADT{{ adhesion.id }}</p>
|
|
|
+ {% if adhesion.contribution.count == 0 %}
|
|
|
+ <p>Pas de cotisation.</p>
|
|
|
+ {% elif adhesion.contribution.count == 1 %}
|
|
|
+ {% with contribution=adhesion.contribution.first %}
|
|
|
+ <p>Montant de votre cotisation : {{ contribution }}</p>
|
|
|
+ {% if contribution.date %}
|
|
|
+ <p>Date d’adhésion : {{ contribution.date }}</p>
|
|
|
+ {% endif %}
|
|
|
+ {% endwith %}
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+{% if adhesion.contribution.count > 1 %}
|
|
|
+<div class="panel panel-default">
|
|
|
+ <div class="panel-heading"><h4>Vos cotisations</h4></div>
|
|
|
+ <table class="table">
|
|
|
+ <tr>
|
|
|
+ <th>Montant</th>
|
|
|
+ <th>Période</th>
|
|
|
+ <th>Méthode de paiement</th>
|
|
|
+ <th>Premier paiement</th>
|
|
|
+ </tr>
|
|
|
+ {% for c in adhesion.contribution.all %}
|
|
|
+ <tr>
|
|
|
+ <td>{{ c.amount }} €</td>
|
|
|
+ <td>{{ c.period_verbose }}</td>
|
|
|
+ <td>{{ c.get_payment_method_display }}</td>
|
|
|
+ <td>{{ c.date }}</td>
|
|
|
+ </tr>
|
|
|
+ {% endfor %}
|
|
|
+ </table>
|
|
|
+</div>
|
|
|
+{% endif %}
|
|
|
+
|
|
|
+{% else %}
|
|
|
+<p>Vous n’êtes pas adhérent.</p>
|
|
|
+{% endif %}
|
|
|
+{% endblock %}
|