{% set zipData = optionalData is null ? '' : optionalData.plz %}
{% set zip = customer and customer.getZip() and (optionalData is empty or optionalData.plz is empty) ? customer.getZip() : zipData %}
<div class="form-group">
<label class="form-box form-box--gray">
<span class="form-box__label">{{ 'demi.booking.checkout.plz'|trans }}{{ isRequired ? ' *': '' }}</span>
<input name="zip"
class="form-box__content form-control {{ class is defined ? class : '' }}"
{{ isRequired ? 'required': '' }}
type="text"
value="{{ zip }}"
{{ zipValidation ? 'data-parsley-zip-validation="true"' : '' }}
autocomplete="shipping postal-code">
</label>
<div class="form-errors"></div>
</div>