address: handle cases when null street and streetnumber are given

This commit is contained in:
nobohan
2022-04-06 15:14:51 +02:00
parent ddce7603ad
commit 017b7bca87
2 changed files with 15 additions and 3 deletions

View File

@@ -20,7 +20,13 @@
{% endif %}
</div>
<div hidden>
{{ form_rest(form) }}
{% if address.isNoAddress %}
{{ form_row(form.street, {'value': ' '})}}
{{ form_row(form.streetNumber, {'value': ' '})}}
{{ form_row(form.postCode)}}
{% else %}
{{ form_rest(form) }}
{% endif %}
</div>
<ul class="record_actions sticky-form-buttons">