mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
add macro for person entity rendering easily
This commit is contained in:
parent
760ec27d70
commit
230945c322
1
Resources/views/Person/macro.html.twig
Normal file
1
Resources/views/Person/macro.html.twig
Normal file
@ -0,0 +1 @@
|
||||
{% macro render(p, withLink=false) %}<span class="entity entity-person person-person"><a href="{{ path('chill_person_view', { 'person_id' : p.id } ) }}">{{ p.firstName }} {{ p.lastName }}</a></span>{% endmacro %}
|
Loading…
x
Reference in New Issue
Block a user