custom/plugins/WabsIgmTheme/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_company_department_input %}
  3.     <input type="text"
  4.            class="form-control{% if violationPath %} is-invalid{% endif %}"
  5.            maxlength="35"
  6.            id="{{ idPrefix ~ prefix }}department"
  7.            placeholder="{{ "address.companyDepartmentPlaceholder"|trans|striptags }}"
  8.            name="{{ prefix }}[department]"
  9.            value="{{ data.get('department') }}">
  10. {% endblock %}
  11. {% block component_address_form_country_state_select %}
  12. {% endblock %}
  13. {% block component_address_form_country_select %}
  14.     {% set de = page.countries|filter(v => v.iso=="DE")|first %}
  15.     {% set deId = de ? de.id : null %}
  16.     {% set countryId = data.get('countryId') ?? deId %}
  17.     <select class="country-select custom-select{% if violationPath %} is-invalid{% endif %}"
  18.             id="{{ prefix }}AddressCountry"
  19.             name="{{ prefix }}[countryId]"
  20.             required="required"
  21.             data-initial-country-id="{{ countryId }}">
  22.         {% if not countryId %}
  23.             <option disabled="disabled"
  24.                     value=""
  25.                     selected="selected">
  26.                 {{ "address.countryPlaceholder"|trans|sw_sanitize }}
  27.             </option>
  28.         {% endif %}
  29.         {% for country in page.countries %}
  30.             <option {% if country.id == countryId %}
  31.                 selected="selected"
  32.             {% endif %}
  33.                 value="{{ country.id }}">
  34.                 {{ country.translated.name }}
  35.             </option>
  36.         {% endfor %}
  37.     </select>
  38. {% endblock %}
  39. {% block component_address_form_address_fields %}
  40.     <div class="form-row country-and-state-form-elements" data-country-state-select="true">
  41.         {{ block('component_address_form_country') }}
  42.     </div>
  43.     <div class="form-row">
  44.         {{ block('component_address_form_zipcode_city') }}
  45.     </div>
  46.     <div class="form-row">
  47.         {{ block('component_address_form_street') }}
  48.     </div>
  49.     <div class="form-row">
  50.         {{ block('component_address_form_additional_field1') }}
  51.         {{ block('component_address_form_additional_field2') }}
  52.     </div>
  53.     <div class="form-row">
  54.         {{ block('component_address_form_phone_number') }}
  55.     </div>
  56. {% endblock %}