src/Elements/Bundle/DemiFrontendBundle/Resources/views/Includes/cards/form-groups/city.html.twig line 1

Open in your IDE?
  1. {% set cityData = optionalData is not null ? optionalData.city : '' %}
  2. {% set city = customer
  3.     and customer.getCity() is not empty
  4.     and (optionalData is empty or optionalData.city is empty) ? customer.getCity() : cityData %}
  5. <div class="form-group">
  6.     <label class="form-box form-box--gray">
  7.         <span class="form-box__label">{{ 'demi.booking.checkout.city'|trans }}{{ isRequired ? ' *': '' }}</span>
  8.         <input name="city"
  9.                class="form-box__content form-control"
  10.                 {{ isRequired ? 'required': '' }}
  11.                type="text"
  12.                value="{{ city }}"
  13.                autocomplete="shipping address-level2">
  14.     </label>
  15.     <div class="form-errors"></div>
  16. </div>