{% if type is defined %}
{% set type = type ~ '-' %}
{% else %}
{% set type = null %}
{% endif %}
{% if country is defined %}
{% set country = country %}
{% else %}
{% set country = true %}
{% endif %}
{% if country %}
<div class="field country">
{% include '@SyliusShop/Common/Form/_countryCode.html.twig' with {'form': form.countryCode} %}
</div>
{% endif %}
<div class="two fields">
{{ form_row(form.firstName, sylius_test_form_attribute(type ~ 'first-name')) }}
{{ form_row(form.lastName, sylius_test_form_attribute(type ~ 'last-name')) }}
</div>
{# {{ form_row(form.company, sylius_test_form_attribute(type ~ 'company')) }} #}
<div class="field street">
{{ form_row(form.street, sylius_test_form_attribute(type ~ 'street')) }}
</div>
<div class="field streetComplementary">
{{ form_row(form.streetComplementary, sylius_test_form_attribute(type ~ 'streetComplementary')) }}
</div>
{% if form.provinceCode is defined %}
{{ form_errors(form) }}
{% endif %}
<div class="two fields postcode city">
{{ form_row(form.postcode, sylius_test_form_attribute(type ~ 'postcode')) }}
{{ form_row(form.city, sylius_test_form_attribute(type ~ 'city')) }}
</div>
<div class="province-container field" data-url="{{ path('sylius_shop_ajax_render_province_form') }}">
{% if form.provinceCode is defined %}
{{ form_row(form.provinceCode, sylius_test_form_attribute('province-code')|sylius_merge_recursive( {'attr': {'class': 'ui dropdown'}})) }}
{% elseif form.provinceName is defined %}
{{ form_row(form.provinceName, sylius_test_form_attribute('province-name')) }}
{% endif %}
</div>
{{ form_row(form.phoneNumber) }}
<small>{{ 'app.front.commande.suivilivraison'|trans }}</small>