n'utilise plus de tags pour l'affichage Oui/Non
This commit is contained in:
parent
825269067c
commit
a1580cc7a2
2 changed files with 6 additions and 9 deletions
|
@ -22,12 +22,12 @@
|
|||
<td>{{participant.user.email}}</td>
|
||||
<td>
|
||||
<div class={%if participant.paid %}"greenratio"{%else%}"redratio"{%endif%}>
|
||||
{{participant.paid|oui_ou_non}}
|
||||
{% if participant.paid %}Oui{% else %}Non{%endif%}
|
||||
</div>
|
||||
</td>
|
||||
<td align="center">
|
||||
<div class={%if participant.given %}"greenratio"{%else%}"redratio"{%endif%}>
|
||||
{{participant.given|oui_ou_non}}
|
||||
{% if participant.given %}Oui{% else %}Non{%endif%}
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
@ -40,11 +40,13 @@
|
|||
</pre>
|
||||
<br>
|
||||
<button type="button" onclick="toggle('export-salle')">Afficher/Cacher liste noms</button>
|
||||
{% spaceless %}
|
||||
<pre id="export-salle" style="display:none">
|
||||
{% for participant in participants %}{{participant.user.get_full_name}}{% if participant.nb_places == 2 %}
|
||||
{{participant.user.get_full_name}}{%endif%}
|
||||
{% endfor %}
|
||||
</pre>
|
||||
{%endspaceless%}
|
||||
|
||||
<script>
|
||||
function toggle(id) {
|
||||
|
|
|
@ -35,9 +35,4 @@ def highlight_clipper(clipper, q):
|
|||
text = clipper.username
|
||||
return highlight_text(text, q)
|
||||
|
||||
@register.filter
|
||||
def oui_ou_non(b):
|
||||
if b:
|
||||
return "Oui"
|
||||
else:
|
||||
return "Non"
|
||||
|
||||
|
|
Loading…
Reference in a new issue