custom/plugins/Wasvehicles/src/Resources/views/storefront/component/address/address-form.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/address/address-form.html.twig' %}
  2. {% block component_address_form_street_input %}
  3.     <input type="text"
  4.            class="form-control{% if violationPath %} is-invalid{% endif %}"
  5.            id="{{ prefix }}AddressStreet"
  6.            placeholder="{{ "address.streetPlaceholder"|trans|striptags }}"
  7.            name="{{ prefix }}[street]"
  8.            value="{% if data.get('street') != "" %}{{ data.get('street') }}{% elseif prefix == "billingAddress" %}Musterstraße{% endif %}"
  9.            required="required">
  10. {% endblock %}
  11. {% block component_address_form_zipcode_input %}
  12.     <input type="text"
  13.            class="form-control{% if violationPath %} is-invalid{% endif %}"
  14.            id="{{ prefix }}AddressZipcode"
  15.            placeholder="{{ "address.zipcodePlaceholder"|trans|striptags }}"
  16.            name="{{ prefix }}[zipcode]"
  17.            value="{% if data.get('zipcode') != "" %}{{ data.get('zipcode') }}{% elseif prefix == "billingAddress" %}12345{% endif %}"
  18.            required="required">
  19. {% endblock %}
  20. {% block component_address_form_city_input %}
  21.     <input type="text"
  22.            class="form-control{% if violationPath %} is-invalid{% endif %}"
  23.            id="{{ prefix }}AddressCity"
  24.            placeholder="{{ "address.cityPlaceholder"|trans|striptags }}"
  25.            name="{{ prefix }}[city]"
  26.            value="{% if data.get('city') != "" %}{{ data.get('city') }}{% elseif prefix == "billingAddress" %}Musterstadt{% endif %}"
  27.            required="required">
  28. {% endblock %}
  29. {% block component_address_form_country_select %}
  30.     <select class="country-select custom-select{% if violationPath %} is-invalid{% endif %}"
  31.             id="{{ prefix }}AddressCountry"
  32.             name="{{ prefix }}[countryId]"
  33.             required="required"
  34.             data-initial-country-id="{{ data.get('countryId') }}">
  35.         {% if not data.get('countryId') %}
  36.             <option disabled="disabled"
  37.                     value=""
  38.                     selected="selected">
  39.                 {{ "address.countryPlaceholder"|trans|sw_sanitize }}
  40.             </option>
  41.         {% endif %}
  42.         {% for country in page.countries %}
  43.             <option {% if prefix == "billingAddress" %}
  44.                         {% if page.header.activeLanguage.localeId == '7eff5dd409444679be21a02b37500e3a' %}
  45.                             {% if country.id == "c224f9eb849240a982273f712d9799ca" %}
  46.                             selected="selected"
  47.                             {% endif %}
  48.                         {% else %}
  49.                             {% if country.id == "a5c2f0b71bc642e6a875598fc4177c31" %}
  50.                             selected="selected"
  51.                             {% endif %}
  52.                         {% endif %}
  53.                     {% else %}
  54.                         {% if country.id == data.get('countryId') %}
  55.                         selected="selected"
  56.                         {% endif %}
  57.                     {% endif %}
  58.                     value="{{ country.id }}">
  59.                 {{ country.translated.name }}
  60.             </option>
  61.         {% endfor %}
  62.     </select>
  63. {% endblock %}