mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
add a widget to display a person list on homepage
This commit is contained in:
16
Resources/views/Widget/homepage_person_list.html.twig
Normal file
16
Resources/views/Widget/homepage_person_list.html.twig
Normal file
@@ -0,0 +1,16 @@
|
||||
{% import 'ChillPersonBundle:Person:macro.html.twig' as person %}
|
||||
<div class="grid-8 centered">
|
||||
<h2>{{ 'Accompanyied people'|trans }}</h2>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
{% for p in persons %}
|
||||
{% if (loop.index - 1) % 3 == 0 %}
|
||||
</tr><tr>
|
||||
{% endif %}
|
||||
<td>{{ person.render(p, true) }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
Reference in New Issue
Block a user