3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-05-19 16:01:46 +00:00
coope/preferences/templates/preferences/payment_methods_index.html

46 lines
1.7 KiB
HTML
Raw Normal View History

2018-10-05 22:03:02 +00:00
{% extends "base.html" %}
{% block entete %}Gestion des moyens de paiement{% endblock %}
2018-10-05 22:03:02 +00:00
{% block navbar %}
<ul>
<li><a href="#first">Liste des moyens de paiement</a></li>
</ul>
{% endblock %}
{% block content %}
<section id="first" class="main">
<header class="major">
<h2>Liste des moyens de paiement</h2>
</header>
2018-12-02 18:26:33 +00:00
{% if perms.preferences.add_paymentmethod %}
2019-01-17 22:16:43 +00:00
<a class="button" href="{% url 'preferences:addPaymentMethod' %}"><i class="fa fa-plus-square"></i> Créer un moyen de paiement</a><br><br>
2018-12-02 18:26:33 +00:00
{% endif %}
2018-10-05 22:03:02 +00:00
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Nom</th>
<th>Actif ?</th>
2018-11-22 21:52:15 +00:00
<th>Cotisations ?</th>
<th>Rechargements ?</th>
2018-10-05 22:03:02 +00:00
<th>Affecte le solde</th>
2019-01-06 04:18:31 +00:00
<th>Icône</th>
2018-10-05 22:03:02 +00:00
<th>Administration</th>
</tr>
</thead>
<tbody>
{% for pm in paymentMethods %}
<tr>
<td>{{ pm.name }} </td>
2019-09-23 10:52:51 +00:00
<td><i class="fa fa-{{ pm.is_active | yesno:'check,times'}}"></i></td>
<td><i class="fa fa-{{ pm.is_usable_in_cotisation | yesno:'check,times' }}"></i></td>
<td><i class="fa fa-{{ pm.is_usable_in_reload | yesno:'check,times' }}"></i></td>
<td><i class="fa fa-{{ pm.affect_balance | yesno:'check,times' }}"></i></td>
2019-01-06 04:18:31 +00:00
<td><i class="fa fa-{{ pm.icon }}"></i></td>
2019-01-17 22:16:43 +00:00
<td>{% if perms.preferences.change_paymentmethod %}<a class="button small" href="{% url 'preferences:editPaymentMethod' pm.pk %}"><i class="fa fa-pencil-alt"></i> Modifier</a> {% endif %}{% if perms.preferences.delete_paymentmethod %}<a class="button small" href="{% url 'preferences:deletePaymentMethod' pm.pk %}"><i class="fa fa-trash"></i> Supprimer</a>{% endif %}</td>
2018-10-05 22:03:02 +00:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
</section>
{% endblock %}