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