<h4 class="ui dividing header">{{ 'sylius.ui.account_credentials'|trans }}</h4>
{% if customer.user is empty or customer.user.id is null %}
    <div class="field">
        <div class="ui toggle checkbox">
            {{ form_row(form.createUser) }}
        </div>
    </div>
{% endif %}
{% if form.user is defined %}
    <div id="user-form" {% if form.user.vars.data.id is not defined %} style="display: none" {% endif %}>
        {{ form_row(form.user.plainPassword) }}
        {{ form_row(form.user.enabled) }}
        {{ form_row(form.user.verifiedAt) }}
    </div>
{% endif %}
