]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/user/index.html.twig
Add missing translation
[airbundle] / Resources / views / user / index.html.twig
1 {% extends '@RapsysAir/base.html.twig' %}
2 {% block content %}
3 <article>
4 <header>
5 <h2>{{ title.page }}</h2>
6 <p>{{ description }}</p>
7 </header>
8 <div class="panel">
9 {% if groups is defined and groups %}
10 <div class="grid{% if groups|length > 2 %} three{% elseif groups|length > 1 %} two{% endif %}">
11 {% for group, users in groups %}
12 <article class="cell">
13 <header>
14 <h3>{{ group }}</h3>
15 </header>
16 <ul>
17 {% for id, user in users %}
18 <li><a href="{{ user.link }}" title="{% if user.forename %}{{ user.forename }} {% endif %}{% if user.surname %}{{ user.surname }} {% endif %}{% if user.pseudonym %}({{ user.pseudonym }}) {% endif %}&lt;{{ user.mail }}&gt;">{{ user.mail }}</a><a href="{{ user.edit }}">{% trans %}Modify{% endtrans %}</a></li>
19 {% endfor %}
20 </article>
21 {% endfor %}
22 </div>
23 {% elseif users is defined and users %}
24 <div class="grid{% if users|length > 3 %} four{% elseif users|length > 2 %} three{% elseif users|length > 1 %} two{% endif %}">
25 {% for id, user in users %}
26 <article class="cell">
27 <header>
28 <h3><a href="{{ user.link }}" title="{{ '%pseudonym% calendar'|trans({'%pseudonym%': user.pseudonym}) }}">{{ user.pseudonym }}</a></h3>
29 </header>
30 {% for dname, dinfos in user.dances %}
31 <dl>
32 <dt><a href="{{ dinfos.link }}">{{ dname }}</a></dt>
33 {% for dtype, dlink in dinfos.types %}
34 <dd><a href="{{ dlink }}">{{ dtype }}</a><dd>
35 {% endfor %}
36 </dl>
37 {% endfor %}
38 </article>
39 {% endfor %}
40 </div>
41 {% endif %}
42 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
43 </div>
44 </article>
45 {{ include('@RapsysAir/default/_location.html.twig') }}
46 {% endblock %}