render box address, remove macro address, refactoring (wip)

This commit is contained in:
2021-07-29 16:51:46 +02:00
parent 55ac730c18
commit 6dac130844
9 changed files with 155 additions and 144 deletions

View File

@@ -16,8 +16,6 @@
#}
{% extends "@ChillPerson/Person/layout.html.twig" %}
{% import '@ChillMain/Address/macro.html.twig' as address %}
{% set activeRouteKey = 'chill_person_view' %}
{#
@@ -171,7 +169,7 @@ This view should receive those arguments:
<dt>{{ 'Address'|trans }}</dt>
<dd>
{%- if person.lastAddress is not empty -%}
{{ address._render(person.lastAddress, {'has_no_address': true}) }}
{{ person.lastAddress|chill_entity_render_box({'has_no_address': true}) }}
<ul class="list-inline text-right mt-2">
<li class="list-inline-item">