{% set cityData = optionalData is not null ? optionalData.city : '' %}
{% set city = customer
and customer.getCity() is not empty
and (optionalData is empty or optionalData.city is empty) ? customer.getCity() : cityData %}
<div class="form-group">
<label class="form-box form-box--gray">
<span class="form-box__label">{{ 'demi.booking.checkout.city'|trans }}{{ isRequired ? ' *': '' }}</span>
<input name="city"
class="form-box__content form-control"
{{ isRequired ? 'required': '' }}
type="text"
value="{{ city }}"
autocomplete="shipping address-level2">
</label>
<div class="form-errors"></div>
</div>