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