{% sw_extends '@Storefront/storefront/component/address/address-form.html.twig' %}
{% block component_address_form_street_input %}
<input type="text"
class="form-control{% if violationPath %} is-invalid{% endif %}"
id="{{ prefix }}AddressStreet"
placeholder="{{ "address.streetPlaceholder"|trans|striptags }}"
name="{{ prefix }}[street]"
value="{% if data.get('street') != "" %}{{ data.get('street') }}{% elseif prefix == "billingAddress" %}Musterstraße{% endif %}"
required="required">
{% endblock %}
{% block component_address_form_zipcode_input %}
<input type="text"
class="form-control{% if violationPath %} is-invalid{% endif %}"
id="{{ prefix }}AddressZipcode"
placeholder="{{ "address.zipcodePlaceholder"|trans|striptags }}"
name="{{ prefix }}[zipcode]"
value="{% if data.get('zipcode') != "" %}{{ data.get('zipcode') }}{% elseif prefix == "billingAddress" %}12345{% endif %}"
required="required">
{% endblock %}
{% block component_address_form_city_input %}
<input type="text"
class="form-control{% if violationPath %} is-invalid{% endif %}"
id="{{ prefix }}AddressCity"
placeholder="{{ "address.cityPlaceholder"|trans|striptags }}"
name="{{ prefix }}[city]"
value="{% if data.get('city') != "" %}{{ data.get('city') }}{% elseif prefix == "billingAddress" %}Musterstadt{% endif %}"
required="required">
{% endblock %}
{% block component_address_form_country_select %}
<select class="country-select custom-select{% if violationPath %} is-invalid{% endif %}"
id="{{ prefix }}AddressCountry"
name="{{ prefix }}[countryId]"
required="required"
data-initial-country-id="{{ data.get('countryId') }}">
{% if not data.get('countryId') %}
<option disabled="disabled"
value=""
selected="selected">
{{ "address.countryPlaceholder"|trans|sw_sanitize }}
</option>
{% endif %}
{% for country in page.countries %}
<option {% if prefix == "billingAddress" %}
{% if page.header.activeLanguage.localeId == '7eff5dd409444679be21a02b37500e3a' %}
{% if country.id == "c224f9eb849240a982273f712d9799ca" %}
selected="selected"
{% endif %}
{% else %}
{% if country.id == "a5c2f0b71bc642e6a875598fc4177c31" %}
selected="selected"
{% endif %}
{% endif %}
{% else %}
{% if country.id == data.get('countryId') %}
selected="selected"
{% endif %}
{% endif %}
value="{{ country.id }}">
{{ country.translated.name }}
</option>
{% endfor %}
</select>
{% endblock %}