Pluralization in bda -> participant list

This commit is contained in:
Martin Pépin 2017-11-01 11:09:16 +01:00
parent 19e6ddc8bf
commit 273e6374ef

View file

@ -47,7 +47,7 @@
<div> <div>
<button class="btn btn-default" type="button" onclick="toggle('export-salle')">Afficher/Cacher liste noms</button> <button class="btn btn-default" type="button" onclick="toggle('export-salle')">Afficher/Cacher liste noms</button>
<pre id="export-salle" style="display:none">{% spaceless %} <pre id="export-salle" style="display:none">{% spaceless %}
{% for participant in participants %}{{participant.name}} : {{participant.nb_places}} places {% for participant in participants %}{{ participant.name }} : {{ participant.nb_places }} place{{ participant.nb_places|pluralize }}
{% endfor %} {% endfor %}
{% endspaceless %}</pre> {% endspaceless %}</pre>
</div> </div>