{% block component_account_register %}
{% block component_account_register_header %} {% if cardTitle %}

{{ cardTitle }}

{% endif %} {% endblock %} {% block component_account_register_form %}
{% block component_account_register_redirect %} {% endblock %} {% block component_account_register_create_account %} {% endblock %} {% block component_account_register_form_action %} {% endblock %} {% block component_account_register_personal %}
{% block component_account_register_personal_legend %} {{ 'account.registerPersonalLegend'|trans|sw_sanitize }} {% endblock %} {% block component_account_register_personal_fields %} {% block component_account_register_personal_address_fields %} {% sw_include '@Storefront/storefront/component/address/address-personal.html.twig' with { showBirthdayField: config('core.loginRegistration.showBirthdayField'), accountType: data.get('accountType') } %} {% endblock %} {% block component_account_register_company_fields %} {% sw_include '@Storefront/storefront/component/address/address-personal-company.html.twig' with { prefix: 'billingAddress', address: data.get('billingAddress') } %} {% endblock %} {% set formGroupMail %} {% block component_account_register_personal_mail %} {% sw_include '@Storefront/storefront/component/form/form-input.html.twig' with { type: 'email', label: 'account.personalMailLabel'|trans|sw_sanitize, id: 'personalMail', name: 'email', value: data.get('email'), autocomplete: 'section-personal email', violationPath: '/email', validationRules: 'required,email', additionalClass: 'col-sm-6', } %} {% endblock %} {% endset %} {% set formGroupMailConfirmation %} {% block component_account_register_personal_mail_confirmation %} {% sw_include '@Storefront/storefront/component/form/form-input.html.twig' with { type: 'email', label: 'account.personalMailConfirmationLabel'|trans|sw_sanitize, id: 'personalMailConfirmation', name: 'emailConfirmation', value: data.get('emailConfirmation'), autocomplete: 'section-personal email', violationPath: '/email', validationRules: 'confirmation,required,email', additionalClass: 'col-sm-6', } %} {% endblock %} {% endset %} {% set formGroupPassword %} {% block component_account_register_personal_password %} {% set passwordFieldDescription = '' %} {% if config('core.loginRegistration.passwordMinLength') != 0 %} {% set passwordFieldDescription = 'account.personalPasswordDescription'|trans({ '%minLength%': config('core.loginRegistration.passwordMinLength') })|sw_sanitize %} {% endif %} {% block component_account_register_personal_password_input %} {% sw_include '@Storefront/storefront/component/form/form-input.html.twig' with { type: 'password', label: 'account.personalPasswordLabel'|trans|sw_sanitize, id: 'personalPassword', name: 'password', autocomplete: 'new-password', description: passwordFieldDescription, violationPath: '/password', validationRules: 'required,minLength', minlength: config('core.loginRegistration.passwordMinLength'), additionalClass: 'col-sm-6 js-form-field-toggle-guest-mode', } %} {% endblock %} {% endblock %} {% endset %} {% set formGroupPasswordConfirmation %} {% block component_account_register_personal_password_confirmation %} {% sw_include '@Storefront/storefront/component/form/form-input.html.twig' with { type: 'password', label: 'account.personalPasswordConfirmationLabel'|trans|sw_sanitize, id: 'personalPasswordConfirmation', name: 'passwordConfirmation', autocomplete: 'new-password', violationPath: '/passwordConfirmation', validationRules: 'required,confirmation', additionalClass: 'col-sm-6 js-form-field-toggle-guest-mode', } %} {% endblock %} {% endset %} {% block component_account_register_personal_account_fields %}
{{ formGroupMail }} {% if config('core.loginRegistration.requireEmailConfirmation') %} {{ formGroupMailConfirmation }} {% elseif config('core.loginRegistration.requirePasswordConfirmation') %} {# If password has a confirmation field, render them in a speparate line next to each other. #}
{% endif %} {{ formGroupPassword }} {% if config('core.loginRegistration.requirePasswordConfirmation') %} {{ formGroupPasswordConfirmation }} {% endif %}
{% endblock %} {% endblock %}
{% endblock %} {% block component_account_register_address %}
{% block component_account_register_address_fields %} {% block component_account_register_address_billing %}
{% block component_account_register_address_billing_header %} {{ 'account.registerAddressBillingHeader'|trans|sw_sanitize }} {% endblock %} {% block component_account_register_address_billing_fields %} {% sw_include '@Storefront/storefront/component/address/address-form.html.twig' with { prefix: 'billingAddress', data: data.get('billingAddress'), showNoShippingPostfix: true, scopeElementSelector: '.register-billing', } %} {% endblock %}
{% endblock %} {% block component_account_register_address_different_shipping %}
{% block component_account_register_address_different_shipping_control %}
{% block component_account_register_address_different_shipping_input %} {% endblock %} {% block component_account_register_address_different_shipping_label %} {% endblock %}
{% endblock %} {% block component_account_register_address_shipping %}
{% block component_account_register_address_shipping_header %} {{ 'account.registerAddressShippingHeader'|trans|sw_sanitize }} {% endblock %} {% block component_account_register_address_shipping_fields %} {% block component_account_register_address_shipping_fields_personal %} {% sw_include '@Storefront/storefront/component/address/address-personal.html.twig' with { prefix: 'shippingAddress', data: data.get('shippingAddress'), hideCustomerTypeSelect: false, customToggleTarget: true, accountType: data.get('shippingAddress').get('accountType') } %} {% endblock %} {% block component_account_register_address_shipping_fields_company %} {% sw_include '@Storefront/storefront/component/address/address-personal-company.html.twig' with { prefix: 'shippingAddress', customToggleTarget: true, address: data.get('shippingAddress') } %} {% endblock %} {% block component_account_register_address_shipping_fields_address %} {% sw_include '@Storefront/storefront/component/address/address-form.html.twig' with { prefix: 'shippingAddress', data: data.get('shippingAddress'), showNoShippingPostfix: true, disableNonShippableCountries: true, scopeElementSelector: '.register-shipping', } %} {% endblock %} {% endblock %}
{% endblock %}
{% endblock %} {% endblock %}
{% endblock %} {% block component_account_register_captcha %} {% sw_include '@Storefront/storefront/component/captcha/base.html.twig' %} {% endblock %} {% block component_account_register_privacy %} {% sw_include '@Storefront/storefront/component/privacy-notice.html.twig' %} {% endblock %} {% block component_account_register_required_fields %}

{{ 'general.requiredFields'|trans|sw_sanitize }}

{% endblock %} {% block component_account_register_submit %}
{% endblock %}
{% endblock %}
{% endblock %}