Commit 7b930332 authored by Antoine Bernard's avatar Antoine Bernard

Accès aux preuves d'adhésion dans l'onglets factures.

parent e5c8877d
......@@ -8,6 +8,32 @@
{% block title %} {% trans "Mes factures" %} {% endblock %}
{% block h1 %}{% trans "Mes factures" %} {% endblock %}
{% block content %}
<h2>{% trans "Certificats d'adhésion" %}</h2>
<table class="mobile-friendly">
<thead>
<tr>
{% blocktrans %}
<th>Reçue le</th>
<th>Type d'achat</th>
<th>Télécharger le pdf</th>
{% endblocktrans %}
</tr>
</thead>
<tbody>
{% for f in luser.factures %}
{% for art in f.article %}
{% if 'ADH' == art.code %}
<tr>
<td mobile-header="{% trans "Paiement reçu le" %}">{{ f.recuPaiement.0.value|date:"DATETIME_FORMAT" }}</td>
<td mobile-header="{% trans "Type d'achat" %}">{% for art in f.article %}{{ art.designation }}{% if not forloop.last %}, {%endif %}{% endfor %}</td>
<td mobile-header="{% trans "Télécharger" %}"><a href="formulaire_{{ f.fid.0 }}.pdf"><img src="{% static 'img/download_white.svg' %}" class="icone_tab" alt="{% trans "Télécharger" %}" /></a>
</tr>
{% endif %}
{% endfor %}
{% endfor %}
</tbody>
</table>
<h2>{% trans "Factures" %}</h2>
<table class="mobile-friendly">
<thead>
<tr>
......
......@@ -6,7 +6,25 @@ urlpatterns = [
url('^$', views.index, name='index'),
url('^liste/(?P<ptype>club)/(?P<cid>[0-9]+)/$', views.index, name='liste'),
url('^liste/(?P<ptype>adh)/(?P<aid>[0-9]+)/$', views.index, name='liste'),
url('(?P<fid>[0-9]+).pdf', views.facture, name='facture'),
url('^liste/(?P<ptype>adh)/(?P<aid>[0-9]+)/(?P<fid>[0-9]+).pdf/$', views.facture, name='facture'),
url('^liste/(?P<ptype>club)/(?P<cid>[0-9]+)/(?P<fid>[0-9]+).pdf/$', views.facture, name='facture')
url('^(?P<fid>[0-9]+).pdf', views.facture, name='facture'),
url('^liste/(?P<ptype>adh)/(?P<aid>[0-9]+)/(?P<fid>[0-9]+).pdf/$',
views.facture,
name='facture'
),
url('^liste/(?P<ptype>club)/(?P<cid>[0-9]+)/(?P<fid>[0-9]+).pdf/$',
views.facture,
name='facture'
),
url('formulaire_(?P<fid>[0-9]+).pdf',
views.formulaire,
name='formulaire'
),
url('^liste/(?P<ptype>adh)/(?P<aid>[0-9]+)/formulaire_(?P<fid>[0-9]+).pdf/$',
views.formulaire,
name='formulaire'
),
url('^liste/(?P<ptype>club)/(?P<cid>[0-9]+)/formulaire_(?P<fid>[0-9]+).pdf/$',
views.formulaire,
name='formulaire',
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment