fix test failures

This commit is contained in:
2021-07-30 21:44:57 +02:00
parent 65fe9ab784
commit 949366cf7b
5 changed files with 32 additions and 51 deletions

View File

@@ -45,12 +45,13 @@
</span>
{% endif %}
{% set address = null %}
{%- if person.currentHouseholdAddress is not empty -%}
{% set address = person.currentHouseholdAddress %}
{%- elseif person.lastAddress is not empty -%}
{% set address = person.lastAddress %}
{%- endif -%}
{%- if address -%}
{%- if address is not null -%}
<span class=" d-block d-sm-inline-block">
{{ address|chill_entity_render_box({
'render': 'inline', 'multiline': false, 'with_picto': true, 'with_delimiter': true

View File

@@ -36,8 +36,6 @@
{{ form_row(form.gender, { 'label' : 'Gender'|trans }) }}
{{ form_row(form.creation_date, { 'label' : 'Creation date'|trans }) }}
{{ form_rest(form) }}
<button class="btn btn-create" type="submit" alt="add a person">

View File

@@ -77,9 +77,6 @@
<dt>{{ 'Gender'|trans }}</dt>
<dd>{{ gender|trans }}</dd>
<dt>{{ 'Creation date'|trans }}</dt>
<dd>{{ creation_date|format_date('long') }}</dd>
{% if form.altNames is defined %}
{# mark as rendered #}
{{ form_widget(form.altNames) }}