]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/user/index.html.twig
New layout with header
[airbundle] / Resources / views / user / index.html.twig
index 2e3b1bdca310d8ef68149f62d8f6c31b3d786282..58417a77651b7fe9191a640d23c359dcd37bb547 100644 (file)
@@ -6,16 +6,23 @@
                        <p>{{ description }}</p>
                </header>
                <div class="panel">
-                       {% if users is defined and users %}
-                               <div class="grid two">
-                                       {% for group, list in users %}
+                       {% if groups is defined and groups %}
+                               <div class="grid three">
+                                       {% for group, users in groups %}
                                                <article class="cell">
                                                        <h3>{{ group }}</h3>
                                                        <ul>
-                                                               {% for id, user in list %}
-                                                                       <li><a href="{{ path('rapsys_air_user_view', {'id': id}) }}">{{ user }}</a></li>
+                                                               {% for id, user in users %}
+                                                                       <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>
                                                                {% endfor %}
-                                                       </ul>
+                                               </article>
+                                       {% endfor %}
+                               </div>
+                       {% elseif users is defined and users %}
+                               <div class="grid four">
+                                       {% for id, user in users %}
+                                               <article class="cell">
+                                                       <h3><a href="{{ path('rapsys_air_user_view', {'id': id}) }}">{{ user.pseudonym }}</a></h3>
                                                </article>
                                        {% endfor %}
                                        {#{% for date, day in organizers %}