You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
fosspay/contrib/fr/overrides/panel.html

62 lines
1.9 KiB

{% extends "layout.html" %}
{% block body %}
<div class="well">
<div class="container">
<p class="pull-right">
<a class="btn btn-primary" href="..">Donner à nouveau</a>
<a class="btn btn-default" href="logout">Se déconnecter</a>
</p>
<h1>Vos dons</h1>
</div>
</div>
<div class="container">
{% if any(recurring(user)) %}
<h2>Dons mensuels</h2>
<table class="table">
<thead>
<tr>
<th style="width: 10%"></th>
<th>Date</th>
<th>Montant</th>
<th>Projet</th>
</tr>
</thead>
<tbody>
{% for donation in recurring(user) %}
<tr>
<td>
<form method="DELETE" action="{{root}}/cancel/{{ donation.id }}">
<button type="submit" class="btn btn-danger btn-sm">Arrêter</button>
</form>
</td>
<td>{{ donation.created.strftime("%d-%m-%Y") }}</td>
<td>{{ currency.amount("{:.2f}".format(donation.amount / 100)) }}</td>
<td>{{ donation.project.name if donation.project else "Non précisé" }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if any(one_times(user)) %}
<h2>Dons uniques</h2>
<table class="table">
<thead>
<tr>
<th>Date</th>
<th>Montant</th>
<th>Projet</th>
</tr>
</thead>
<tbody>
{% for donation in one_times(user) %}
<tr>
<td>{{ donation.created.strftime("%d-%m-%Y") }}</td>
<td>{{ currency.amount("{:.2f}".format(donation.amount / 100)) }}</td>
<td>{{ donation.project.name if donation.project else "Non précisé" }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
{% endblock %}