mirror of
https://github.com/nanoy42/coope
synced 2024-11-21 10:53:11 +00:00
Improve Yesno display
This commit is contained in:
parent
1882e35484
commit
c94296ebcc
5 changed files with 9 additions and 9 deletions
|
@ -28,7 +28,7 @@
|
|||
<td>{{ menu.name }}</td>
|
||||
<td>{{ menu.amount}} €</td>
|
||||
<td>{% for art in menu.articles.all %}<a href="{% url 'gestion:productProfile' art.pk %}">{{art}}</a>,{% endfor %}</td>
|
||||
<td>{{ menu.is_active | yesno:"Oui, Non"}}</td>
|
||||
<td><i class="fa fa-{{ menu.is_active | yesno:'check,times'}}"></i></td>
|
||||
<td>{% if perms.gestion.change_menu %}<a href="{% url 'gestion:switchActivateMenu' menu.pk %}" class="button small">{% if menu.is_active %}<i class="fa fa-times-cirlce"></i> Désa{% else %}<i class="fa fa-check-circle"></i> A{% endif %}ctiver</a> <a href="{% url 'gestion:editMenu' menu.pk %}" class="button small"><i class="fa fa-pencil-alt"></i> Modifier</a>{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<td>{{ product.amount}}</td>
|
||||
<td>{{ product.stock }}</td>
|
||||
<td>{{ product.category }}</td>
|
||||
<td>{{ product.is_active | yesno:"Oui, Non"}}</td>
|
||||
<td><i class="fa fa-{{ product.is_active | yesno:'check,times'}}"></i></td>
|
||||
<td>{{ product.deg }}</td>
|
||||
<td>{{ product.volume }} cl</td>
|
||||
<td><a href="{% url 'gestion:productProfile' product.pk %}" class="button small"><i class="fa fa-eye"></i> Profil</a> {% if perms.gestion.change_product %}<a href="{% url 'gestion:switchActivate' product.pk %}" class="button small">{% if product.is_active %}<i class="fa fa-times-circle"></i> Désa{% else %}<i class="fa fa-check-circle"></i> A{% endif %}ctiver</a> <a href="{% url 'gestion:editProduct' product.pk %}" class="button small"><i class="fa fa-pencil-alt"></i> Modifier</a>{% endif %}</td>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<tr>
|
||||
<td>{{improvement.title}}</td>
|
||||
<td>{{improvement.get_mode_display}}</td>
|
||||
<td>{{improvement.seen|yesno:"Oui,Non"}}</td>
|
||||
<td><i class="fa fa-{{improvement.seen|yesno:'check,times'}}"></i></td>
|
||||
<td>{{improvement.date}}</td>
|
||||
<td><a href="{% url 'preferences:improvementProfile' improvement.pk %}" class="button small"><i class="fa fa-eye"></i> Voir</a> <a href="{% url 'preferences:changeImprovementState' improvement.pk %}" class="button small"><i class="fa fa-check"></i> Passer en fait</a> <a href="{% url 'preferences:deleteImprovement' improvement.pk %}" class="button small"><i class="fa fa-trash"></i> Supprimer</a></td>
|
||||
</tr>
|
||||
|
@ -56,7 +56,7 @@
|
|||
<tr>
|
||||
<td>{{improvement.title}}</td>
|
||||
<td>{{improvement.get_mode_display}}</td>
|
||||
<td>{{improvement.seen|yesno:"Oui,Non"}}</td>
|
||||
<td><i class="fa fa-{{improvement.seen|yesno:'check,times'}}"></i></td>
|
||||
<td>{{improvement.date}}</td>
|
||||
<td><a href="{% url 'preferences:improvementProfile' improvement.pk %}" class="button small"><i class="fa fa-eye"></i> Voir</a> <a href="{% url 'preferences:changeImprovementState' improvement.pk %}" class="button small"><i class="fa fa-check"></i> Passer en non fait</a> <a href="{% url 'preferences:deleteImprovement' improvement.pk %}" class="button small"><i class="fa fa-trash"></i> Supprimer</a></td>
|
||||
</tr>
|
||||
|
|
|
@ -30,10 +30,10 @@
|
|||
{% for pm in paymentMethods %}
|
||||
<tr>
|
||||
<td>{{ pm.name }} </td>
|
||||
<td>{{ pm.is_active | yesno:"Oui, Non"}}</td>
|
||||
<td>{{ pm.is_usable_in_cotisation | yesno:"Oui, Non" }}</td>
|
||||
<td>{{ pm.is_usable_in_reload | yesno:"Oui, Non" }}</td>
|
||||
<td>{{ pm.affect_balance | yesno:"Oui, Non" }}</td>
|
||||
<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>
|
||||
<td><i class="fa fa-{{ pm.icon }}"></i></td>
|
||||
<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>
|
||||
</tr>
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<td>{{ pp.b }}</td>
|
||||
<td>{{ pp.c }}</td>
|
||||
<td>{{ pp.alpha }}</td>
|
||||
<td>{{ pp.use_for_draft | yesno:"Oui,Non"}}</td>
|
||||
<td><i class="fa fa-{{ pp.use_for_draft | yesno:'check,times'}}"></i></td>
|
||||
<td>{% if perms.preferences.change_priceprofile %}<a class="button small" href="{% url 'preferences:editPriceProfile' pp.pk %}"><i class="fa fa-pencil-alt"></i> Modifier</a> {% endif %}{% if perms.preferences.delete_priceprofile %}<a class="button small" href="{% url 'preferences:deletePriceProfile' pp.pk %}"><i class="fa fa-trash"></i> Supprimer</a>{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue