]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/user/index.html.twig
Transform title in name and type
[airbundle] / Resources / views / user / index.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <article id="dashboard">
4 <header>
5 <h2><a href="{{ path('rapsys_air_user') }}">{{ section }}</a></h2>
6 <p>{{ description }}</p>
7 </header>
8 <div class="panel">
9 {% if groups is defined and groups %}
10 <div class="grid three">
11 {% for group, users in groups %}
12 <article class="cell">
13 <h3>{{ group }}</h3>
14 <ul>
15 {% for id, user in users %}
16 <li><a href="{{ path('rapsys_air_user_view', {'id': id}) }}">{{ user.pseudonym }}</a><a href="{{ path('rapsys_user_edit', {'mail': user.mail|short, 'hash': user.mail|short|hash}) }}">{% trans %}Modify{% endtrans %}</a></li>
17 {% endfor %}
18 </article>
19 {% endfor %}
20 </div>
21 {% elseif users is defined and users %}
22 <div class="grid four">
23 {% for id, user in users %}
24 <article class="cell">
25 <h3><a href="{{ path('rapsys_air_user_view', {'id': id}) }}">{{ user.pseudonym }}</a></h3>
26 </article>
27 {% endfor %}
28 {#{% for date, day in organizers %}
29 <article class="{{ ['cell', 'seventh']|merge(day.class)|join(' ') }}">
30 <h3>{{ day.title }}</h3>
31 {% if day.sessions is not empty %}
32 <ul>
33 {% for session in day.sessions %}
34 <li class="{{ ['session']|merge(session.class)|join(' ') }}">
35 <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}" title="{{ session.applications|join('\n') }}">{{ session.title }}</a>
36 <span>
37 {% if session.weather is defined and session.weather %}<span title="{{ session.weathertitle }}">{{ session.weather }}</span>{% endif %}
38 <span title="{{ session.slottitle }}">{{ session.slot }}</span>
39 </span>
40 </li>
41 {% endfor %}
42 </ul>
43 {% else %}
44 &nbsp;
45 {% endif %}
46 </article>
47 {% endfor %}#}
48 </div>
49 {% endif %}
50 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
51 </div>
52 </article>
53 {{ include('@RapsysAir/default/_location.html.twig') }}
54 {% endblock %}