<div id="lc-user-address" class="row">
    <script>
        window.addressValues = {
            {% if form.type.vars.value %}addressType: '{{ form.type.vars.value }}'{% endif %}
        };
    </script>

    <div class="col-12">
        {{ form_row(form.title) }}
    </div>
    <div class="col-6">
        {{ form_row(form.type, {'attr': {'v-model' : 'addressType'}}) }}
    </div>

    <div class="col-6">
        {{ form_row(form.civility) }}
    </div>
    <div class="col-6">
        {{ form_row(form.lastname) }}
    </div>
    <div class="col-6">
        {{ form_row(form.firstname) }}
    </div>
    <div class="col-12">
        {{ form_row(form.address) }}
    </div>
    <div class="col-6">
        {{ form_row(form.zip) }}
    </div>
    <div class="col-6">
        {{ form_row(form.city) }}
    </div>
    <div class="col-12">
        {{ form_row(form.phone) }}
    </div>

    <div v-show="addressType=='{{ constant('Lc\\ShopBundle\\Model\\Address::TYPE_LEGAL_PERSON') }}'" class="col-12">
        <div class="row">
            <div class="col-12">
                {{ form_row(form.company) }}
            </div>
            <div class="col-6">
                {{ form_row(form.siret) }}
            </div>
            <div class="col-6">
                {{ form_row(form.tva) }}
            </div>

        </div>
    </div>
    <div class="col-12">
        {{ form_row(form.deliveryInfos) }}
    </div>
    <div class="col-6">
        {{ form_row(form.latitude) }}
    </div>
    <div class="col-6">
        {{ form_row(form.longitude) }}
    </div>

    {{ form_row(form.country) }}

</div>
