]> Raphaƫl G. Git Repositories - userbundle/blob - templates/index.html.twig
Update bundle requirements
[userbundle] / templates / index.html.twig
1 {% extends '@RapsysUser/base.html.twig' %}
2 {% block content %}
3 <section>
4 <header>
5 <h2><a href="{{ self_url }}">{{ title }}</a></h2>
6 </header>
7 {% if groups is defined and groups %}
8 {% for group, users in groups %}
9 <article id="rapsysuser_index_{{ group|lower }}">
10 <header>
11 <h3>{{ group }}</h3>
12 </header>
13 {% if users is defined and users %}
14 <ul>
15 {% for id, user in users %}
16 <li><a href="{{ user.edit }}">{{ [user.forename, user.surname]|filter(v => v)|join(' ') }} &lt;{{ user.mail }}&gt;</a></li>
17 {% endfor %}
18 </ul>
19 {% endif %}
20 </article>
21 {% endfor %}
22 {% endif %}
23 </section>
24 {% endblock %}