custom/plugins/CeCustomerSubaccounts/src/Resources/views/storefront/page/subaccount.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_content %}
  3.     <div class="container">
  4.         <div class="container-main">
  5.             <div class="account-register">
  6.                 <div class="row">
  7.                     <div class="col-lg-5">
  8.                         {% block page_account_order_item_overview %}
  9.                             <div class="order-wrapper">
  10.                                 <div class="order-item-header">
  11.                                     <div class="row flex-wrap">
  12.                                         {% block page_account_order_item_heading %}
  13.                                             <h3 class="col-auto order-table-header-heading"> Subaccounts</h3>
  14.                                         {% endblock %}
  15.                                         {% block page_account_order_item_status_col %}
  16.                                             <div class="col-12 col-sm">
  17.                                                 {% block page_account_order_item_status %}
  18.                                                     <div class="order-table-header-order-status">
  19.                                                     </div>
  20.                                                 {% endblock %}
  21.                                             </div>
  22.                                         {% endblock %}
  23.                                         {% block page_account_order_item_context_menu_col %}
  24.                                             <div class="col-1 order-table-header-context-menu-wrapper">
  25.                                             </div>
  26.                                         {% endblock %}
  27.                                         {% block page_account_order_item_order_number_col %}
  28.                                         {% endblock %}
  29.                                     </div>
  30.                                     {% block page_account_order_item_order_table_header_col %}
  31.                                         {% block page_account_order_item_order_table_header %}
  32.                                             <div class="col-12 row order-table-header-order-table-header">
  33.                                                 {% block page_account_order_item_order_table_header_cell_shipping_status %}
  34.                                                     <div class="col-12 col-sm order-table-header-order-table-header-cell">E-mail</div>
  35.                                                 {% endblock %}
  36.                                                 {% block page_account_order_item_order_table_header_cell_payment_status %}
  37.                                                     <div class="col-12 col-sm order-table-header-order-table-header-cell">Firstname</div>
  38.                                                 {% endblock %}
  39.                                                 {% block page_account_order_item_order_table_header_cell_payment_method %}
  40.                                                     <div class="col-12 col-sm order-table-header-order-table-header-cell">Lastname</div>
  41.                                                 {% endblock %}
  42.                                                 {% block page_account_order_item_order_table_header_cell_shipping_method %}
  43.                                                     <div class="col-12 col-sm order-table-header-order-table-header-cell"></div>
  44.                                                 {% endblock %}
  45.                                                 {% block page_account_order_item_order_table_header_cell_placeholder %}
  46.                                                     <div class="col-2 order-table-header-order-table-header-cell"></div>
  47.                                                 {% endblock %}
  48.                                             </div>
  49.                                         {% endblock %}
  50.                                     {% endblock %}
  51.                                 </div>
  52.                             </div>
  53.                             {% block page_account_order_item_detail %}
  54.                                 {% sw_include '@Storefront/storefront/page/account/order-history/order-detail.html.twig' %}
  55.                             {% endblock %}
  56.                         {% endblock %}
  57.                     </div>
  58.                     <div class="col-lg-7">
  59.                         <h3 class="col-auto order-table-header-heading">Create Subaccount</h3>
  60.                         <form action="{{ path('frontend.account.register.save') }}"
  61.                               class="register-form"
  62.                               method="post"
  63.                               data-form-csrf-handler="true"
  64.                               data-form-validation="true">
  65.                             {% block component_account_register_personal %}
  66.                                 <div class="register-personal">
  67.                                     {% block component_account_register_personal_fields %}
  68.                                         {% block component_address_personal_fields %}
  69.                                             {% block component_address_personal_account_type %}
  70.                                                 {% if onlyCompanyRegistration or (config('core.loginRegistration.showAccountTypeSelection') and not hideCustomerTypeSelect) %}
  71.                                                     <div class="form-row">
  72.                                                         <div class="form-group col-md-3 col-sm-6 contact-type">
  73.                                                             {% block component_address_personal_account_type_label %}
  74.                                                                 <label class="form-label"
  75.                                                                        for="{{ prefix }}accountType">
  76.                                                                     {{ "account.personalTypeLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  77.                                                                 </label>
  78.                                                             {% endblock %}
  79.                                                             {% block component_address_personal_account_type_select %}
  80.                                                                 {% if onlyCompanyRegistration or config('core.loginRegistration.showAccountTypeSelection') %}
  81.                                                                     <select name="{% if prefix %}{{ prefix }}[accountType]{% else %}accountType{% endif %}"
  82.                                                                     id="{{ prefix }}accountType"
  83.                                                                     {% if onlyCompanyRegistration %}disabled{% endif %}
  84.                                                                     required="required"
  85.                                                                     class="custom-select contact-select"
  86.                                                                     data-form-field-toggle="true"
  87.                                                                     data-form-field-toggle-target=".js-field-toggle-contact-type-company{% if customToggleTarget %}-{{ prefix }}{% endif %}"
  88.                                                                     data-form-field-toggle-value="{{ constant('Shopware\\Core\\Checkout\\Customer\\CustomerEntity::ACCOUNT_TYPE_BUSINESS') }}"
  89.                                                                     data-form-field-toggle-scope="{% if scope == 'parent' %}parent{% else %}all{% endif %}"
  90.                                                                     {% if scope == 'parent' %}data-form-field-toggle-parent-selector={{ parentSelector }}{% endif %}
  91.                                                                     >
  92.                                                                 {% endif %}
  93.                                                                 {% set isCompany = false %}
  94.                                                                 {% if page.address.company or data.company is not empty %}
  95.                                                                     {% set isCompany  = true %}
  96.                                                                 {% endif %}
  97.                                                                 {% if onlyCompanyRegistration or (accountType and accountType == constant('Shopware\\Core\\Checkout\\Customer\\CustomerEntity::ACCOUNT_TYPE_BUSINESS')) %}
  98.                                                                     {% set isCompany  = true %}
  99.                                                                 {% endif %}
  100.                                                                 {% set isLoginPage = false %}
  101.                                                                 {% if activeRoute == 'frontend.account.login.page' %}
  102.                                                                     {% set isLoginPage = true %}
  103.                                                                 {% endif %}
  104.                                                                 {% if isLoginPage %}
  105.                                                                     <option disabled="disabled"
  106.                                                                             selected="selected"
  107.                                                                             value="">
  108.                                                                         {{ "account.personalTypeLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  109.                                                                     </option>
  110.                                                                 {% endif %}
  111.                                                                 {% if not onlyCompanyRegistration %}
  112.                                                                     <option value="{{ constant('Shopware\\Core\\Checkout\\Customer\\CustomerEntity::ACCOUNT_TYPE_PRIVATE') }}"
  113.                                                                             {% if isCompany == false and isLoginPage == false %} selected="selected"{% endif %}>
  114.                                                                         {{ "account.personalTypePrivate"|trans|sw_sanitize }}
  115.                                                                     </option>
  116.                                                                 {% endif %}
  117.                                                                 <option value="{{ constant('Shopware\\Core\\Checkout\\Customer\\CustomerEntity::ACCOUNT_TYPE_BUSINESS') }}"
  118.                                                                         {% if isCompany == true and isLoginPage == false %} selected="selected"{% endif %}>
  119.                                                                     {{ "account.personalTypeBusiness"|trans|sw_sanitize }}
  120.                                                                 </option>
  121.                                                                 </select>
  122.                                                                 {% if onlyCompanyRegistration %}<input type="hidden" name="accountType" value="{{ constant('Shopware\\Core\\Checkout\\Customer\\CustomerEntity::ACCOUNT_TYPE_BUSINESS') }}">{% endif %}
  123.                                                             {% endblock %}
  124.                                                             {% block component_address_personal_account_type_error %}
  125.                                                             {% endblock %}
  126.                                                         </div>
  127.                                                     </div>
  128.                                                 {% elseif not hideCustomerTypeSelect %}
  129.                                                     <input type="hidden" name="accountType">
  130.                                                 {% endif %}
  131.                                             {% endblock %}
  132.                                             {% block component_address_personal_fields_salutation_title %}
  133.                                                 <div class="form-row">
  134.                                                     {% block component_address_personal_fields_salutation %}
  135.                                                         <div class="form-group col-md-3 col-sm-6">
  136.                                                             {% block component_address_personal_fields_salutation_label %}
  137.                                                                 <label class="form-label"
  138.                                                                        for="{{ prefix }}personalSalutation">
  139.                                                                     {{ "account.personalSalutationLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  140.                                                                 </label>
  141.                                                             {% endblock %}
  142.                                                             {% block component_address_form_salutation_select %}
  143.                                                                 <select id="{{ prefix }}personalSalutation"
  144.                                                                         class="custom-select{% if formViolations.getViolations('/salutationId') is not empty %} is-invalid{% endif %}"
  145.                                                                         name="{% if prefix %}{{ prefix }}[salutationId]{% else %}salutationId{% endif %}"
  146.                                                                         required="required">
  147.                                                                     {% if not data.get('salutationId') %}
  148.                                                                         <option disabled="disabled"
  149.                                                                                 selected="selected"
  150.                                                                                 value="">
  151.                                                                             {{ "account.personalSalutationPlaceholder"|trans|sw_sanitize }}
  152.                                                                         </option>
  153.                                                                     {% endif %}
  154.                                                                     <option value="058c2837d5e44b9a9223b1144d71c51a">
  155.                                                                         Keine Angabe
  156.                                                                     </option>
  157.                                                                     <option value="e6524291661a4523b30dab2ef212674a">
  158.                                                                         Frau
  159.                                                                     </option>
  160.                                                                     <option value="3da60fb5684b477ea02cc2f11a021bf4">
  161.                                                                         Herr
  162.                                                                     </option>
  163.                                                                 </select>
  164.                                                             {% endblock %}
  165.                                                             {% block component_address_form_salutation_select_error %}
  166.                                                                 {% if formViolations.getViolations('/salutationId') is not empty %}
  167.                                                                     {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  168.                                                                         violationPath: '/salutationId'
  169.                                                                     } %}
  170.                                                                 {% endif %}
  171.                                                             {% endblock %}
  172.                                                         </div>
  173.                                                     {% endblock %}
  174.                                                     {% block component_address_personal_fields_title %}
  175.                                                         {% if config('core.loginRegistration.showTitleField') %}
  176.                                                             <div class="form-group col-md-3 col-sm-6">
  177.                                                                 {% block component_address_personal_fields_title_label %}
  178.                                                                     <label class="form-label"
  179.                                                                            for="{{ prefix }}personalTitle">
  180.                                                                         {{ "account.personalTitleLabel"|trans|sw_sanitize }}
  181.                                                                     </label>
  182.                                                                 {% endblock %}
  183.                                                                 {% block component_address_personal_fields_title_input %}
  184.                                                                     <input type="text"
  185.                                                                            class="form-control"
  186.                                                                            autocomplete="section-personal title"
  187.                                                                            id="{{ prefix }}personalTitle"
  188.                                                                            placeholder="{{ "account.personalTitlePlaceholder"|trans|striptags }}"
  189.                                                                            name="{% if prefix %}{{ prefix }}[title]{% else %}title{% endif %}"
  190.                                                                            value="{{ data.get('title') }}">
  191.                                                                 {% endblock %}
  192.                                                             </div>
  193.                                                         {% endif %}
  194.                                                     {% endblock %}
  195.                                                 </div>
  196.                                             {% endblock %}
  197.                                             {% block component_address_personal_fields_name %}
  198.                                                 <div class="form-row">
  199.                                                     {% block component_address_personal_fields_first_name %}
  200.                                                         <div class="form-group col-sm-6">
  201.                                                             {% block component_address_personal_fields_first_name_label %}
  202.                                                                 <label class="form-label"
  203.                                                                        for="{{ prefix }}personalFirstName">
  204.                                                                     {{ "account.personalFirstNameLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  205.                                                                 </label>
  206.                                                             {% endblock %}
  207.                                                             {% block component_address_personal_fields_first_name_input %}
  208.                                                                 <input type="text"
  209.                                                                        class="form-control{% if formViolations.getViolations('/firstName') is not empty %} is-invalid{% endif %}"
  210.                                                                        autocomplete="section-personal given-name"
  211.                                                                        id="{{ prefix }}personalFirstName"
  212.                                                                        placeholder="{{ "account.personalFirstNamePlaceholder"|trans|striptags }}"
  213.                                                                        name="{% if prefix %}{{ prefix }}[firstName]{% else %}firstName{% endif %}"
  214.                                                                        value="{{ data.get('firstName') }}"
  215.                                                                        required="required">
  216.                                                             {% endblock %}
  217.                                                             {% block component_address_personal_fields_first_name_input_error %}
  218.                                                                 {% if formViolations.getViolations('/firstName') is not empty %}
  219.                                                                     {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  220.                                                                         violationPath: '/firstName'
  221.                                                                     } %}
  222.                                                                 {% endif %}
  223.                                                             {% endblock %}
  224.                                                         </div>
  225.                                                     {% endblock %}
  226.                                                     {% block component_address_personal_fields_last_name %}
  227.                                                         <div class="form-group col-sm-6">
  228.                                                             {% block component_address_personal_fields_last_name_label %}
  229.                                                                 <label class="form-label"
  230.                                                                        for="{{ prefix }}personalLastName">
  231.                                                                     {{ "account.personalLastNameLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  232.                                                                 </label>
  233.                                                             {% endblock %}
  234.                                                             {% block component_address_personal_fields_last_name_input %}
  235.                                                                 <input type="text"
  236.                                                                        class="form-control{% if formViolations.getViolations('/lastName') is not empty %} is-invalid{% endif %}"
  237.                                                                        autocomplete="section-personal family-name"
  238.                                                                        id="{{ prefix }}personalLastName"
  239.                                                                        placeholder="{{ "account.personalLastNamePlaceholder"|trans|striptags }}"
  240.                                                                        name="{% if prefix %}{{ prefix }}[lastName]{% else %}lastName{% endif %}"
  241.                                                                        value="{{ data.get('lastName') }}"
  242.                                                                        required="required">
  243.                                                             {% endblock %}
  244.                                                             {% block component_address_personal_fields_last_name_input_error %}
  245.                                                                 {% if formViolations.getViolations('/lastName') is not empty %}
  246.                                                                     {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  247.                                                                         violationPath: '/lastName'
  248.                                                                     } %}
  249.                                                                 {% endif %}
  250.                                                             {% endblock %}
  251.                                                         </div>
  252.                                                     {% endblock %}
  253.                                                 </div>
  254.                                             {% endblock %}
  255.                                             {% block component_address_personal_company %}
  256.                                                 {% if (onlyCompanyRegistration or config('core.loginRegistration.showAccountTypeSelection')) and activeRoute == 'frontend.account.profile.page' %}
  257.                                                     <div class="js-field-toggle-contact-type-company{% if customToggleTarget %}-{{ prefix }}{% endif %}">
  258.                                                         {% block component_address_personal_company_fields %}
  259.                                                             <div class="form-row">
  260.                                                                 {% block component_address_personal_company_name %}
  261.                                                                     <div class="form-group col-12">
  262.                                                                         {% if formViolations.getViolations("/company") is not empty %}
  263.                                                                             {% set violationPath = "/company" %}
  264.                                                                         {% endif %}
  265.                                                                         {% block component_address_personal_company_name_label %}
  266.                                                                             <label class="form-label" for="company">
  267.                                                                                 {{ "address.companyNameLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  268.                                                                             </label>
  269.                                                                         {% endblock %}
  270.                                                                         {% block component_address_personal_company_name_input %}
  271.                                                                             <input type="text"
  272.                                                                                    class="form-control{% if violationPath %} is-invalid{% endif %}"
  273.                                                                                    id="company"
  274.                                                                                    placeholder="{{ "address.companyNamePlaceholder"|trans|striptags }}"
  275.                                                                                    name="company"
  276.                                                                                    value="{{ data.get('company') }}"
  277.                                                                                    required="required">
  278.                                                                         {% endblock %}
  279.                                                                         {% block component_address_personal_company_name_input_error %}
  280.                                                                             {% if violationPath %}
  281.                                                                                 {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' %}
  282.                                                                             {% endif %}
  283.                                                                         {% endblock %}
  284.                                                                     </div>
  285.                                                                 {% endblock %}
  286.                                                             </div>
  287.                                                         {% endblock %}
  288.                                                     </div>
  289.                                                 {% endif %}
  290.                                             {% endblock %}
  291.                                             {% block component_address_personal_vat_id %}
  292.                                                 {% if showVatIdField %}
  293.                                                     {% if config('core.loginRegistration.showAccountTypeSelection') or onlyCompanyRegistration %}
  294.                                                         <div class="js-field-toggle-contact-type-company{% if customToggleTarget %}-{{ prefix }}{% endif %} js-field-toggle-contact-type-vat-id">
  295.                                                             {% block component_address_personal_vat_id_fields %}
  296.                                                                 <div class="form-row">
  297.                                                                     <div class="form-group col-12">
  298.                                                                         {% sw_include '@Storefront/storefront/component/address/address-personal-vat-id.html.twig' with {
  299.                                                                             'vatIds': data.get('vatIds'),
  300.                                                                             'editMode': true
  301.                                                                         } %}
  302.                                                                     </div>
  303.                                                                 </div>
  304.                                                             {% endblock %}
  305.                                                         </div>
  306.                                                     {% endif %}
  307.                                                 {% endif %}
  308.                                             {% endblock %}
  309.                                             {% block component_address_personal_fields_birthday %}
  310.                                                 {% if showBirthdayField %}
  311.                                                     {% block component_address_personal_fields_birthday_label %}
  312.                                                         <label for="{{ prefix }}personalBirthday">
  313.                                                             {{ "account.personalBirthdayLabel"|trans|sw_sanitize }}{{ config('core.loginRegistration.birthdayFieldRequired') ? "general.required"|trans|sw_sanitize }}
  314.                                                         </label>
  315.                                                     {% endblock %}
  316.                                                     {% block component_address_personal_fields_birthday_selects %}
  317.                                                         <div class="form-row">
  318.                                                             {% block component_address_personal_fields_birthday_select_day %}
  319.                                                                 <div class="form-group col-md-2 col-4">
  320.                                                                     <select id="{{ prefix }}personalBirthday"
  321.                                                                             name="{% if prefix %}{{ prefix }}[birthdayDay]{% else %}birthdayDay{% endif %}"
  322.                                                                             class="custom-select{% if formViolations.getViolations('/birthdayDay') is not empty %} is-invalid{% endif %}"
  323.                                                                             {{ config('core.loginRegistration.birthdayFieldRequired') ? 'required="required"' }}>
  324.                                                                         {% if not data.get('birthdayDay') %}
  325.                                                                             <option selected="selected"
  326.                                                                                     value="">
  327.                                                                                 {{ "account.personalBirthdaySelectDay"|trans|sw_sanitize }}
  328.                                                                             </option>
  329.                                                                         {% endif %}
  330.                                                                         {% for day in range(1, 31) %}
  331.                                                                             <option value="{{ day }}"
  332.                                                                                     {% if day == data.get('birthdayDay') %} selected="selected"{% endif %}>
  333.                                                                                 {{ day }}
  334.                                                                             </option>
  335.                                                                         {% endfor %}
  336.                                                                     </select>
  337.                                                                     {% block component_address_personal_fields_birthday_select_day_error %}
  338.                                                                         {% if formViolations.getViolations('/birthdayDay') is not empty %}
  339.                                                                             {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  340.                                                                                 violationPath: '/birthdayDay'
  341.                                                                             } %}
  342.                                                                         {% endif %}
  343.                                                                     {% endblock %}
  344.                                                                 </div>
  345.                                                             {% endblock %}
  346.                                                             {% block component_address_personal_fields_birthday_select_month %}
  347.                                                                 <div class="form-group col-md-2 col-4">
  348.                                                                     <select name="{% if prefix %}{{ prefix }}[birthdayMonth]{% else %}birthdayMonth{% endif %}"
  349.                                                                             class="custom-select{% if formViolations.getViolations('/birthdayMonth') is not empty %} is-invalid{% endif %}"
  350.                                                                             {{ config('core.loginRegistration.birthdayFieldRequired') ? 'required="required"' }}>
  351.                                                                         {% if not data.get('birthdayMonth') %}
  352.                                                                             <option selected="selected"
  353.                                                                                     value="">
  354.                                                                                 {{ "account.personalBirthdaySelectMonth"|trans|sw_sanitize }}
  355.                                                                             </option>
  356.                                                                         {% endif %}
  357.                                                                         {% for month in range(1, 12) %}
  358.                                                                             <option value="{{ month }}"
  359.                                                                                     {% if month == data.get('birthdayMonth') %} selected="selected"{% endif %}>
  360.                                                                                 {{ month }}
  361.                                                                             </option>
  362.                                                                         {% endfor %}
  363.                                                                     </select>
  364.                                                                     {% block component_address_personal_fields_birthday_select_month_error %}
  365.                                                                         {% if formViolations.getViolations('/birthdayMonth') is not empty %}
  366.                                                                             {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  367.                                                                                 violationPath: '/birthdayMonth'
  368.                                                                             } %}
  369.                                                                         {% endif %}
  370.                                                                     {% endblock %}
  371.                                                                 </div>
  372.                                                             {% endblock %}
  373.                                                             {% block component_address_personal_fields_birthday_select_year %}
  374.                                                                 <div class="form-group col-md-2 col-4">
  375.                                                                     {% set currentYear = "now"|date('Y') %}
  376.                                                                     {% set startYear = currentYear - 120 %}
  377.                                                                     <select name="{% if prefix %}{{ prefix }}[birthdayYear]{% else %}birthdayYear{% endif %}"
  378.                                                                             class="custom-select{% if formViolations.getViolations('/birthdayYear') is not empty %} is-invalid{% endif %}"
  379.                                                                             {{ config('core.loginRegistration.birthdayFieldRequired') ? 'required="required"' }}>
  380.                                                                         {% if not data.get('birthdayYear') %}
  381.                                                                             <option selected="selected"
  382.                                                                                     value="">
  383.                                                                                 {{ "account.personalBirthdaySelectYear"|trans|sw_sanitize }}
  384.                                                                             </option>
  385.                                                                         {% endif %}
  386.                                                                         {% for year in range(currentYear, startYear) %}
  387.                                                                             <option value="{{ year }}"
  388.                                                                                     {% if year == data.get('birthdayYear') %} selected="selected"{% endif %}>
  389.                                                                                 {{ year }}
  390.                                                                             </option>
  391.                                                                         {% endfor %}
  392.                                                                     </select>
  393.                                                                     {% block component_address_personal_fields_birthday_select_year_error %}
  394.                                                                         {% if formViolations.getViolations('/birthdayYear') is not empty %}
  395.                                                                             {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  396.                                                                                 violationPath: '/birthdayYear'
  397.                                                                             } %}
  398.                                                                         {% endif %}
  399.                                                                     {% endblock %}
  400.                                                                 </div>
  401.                                                             {% endblock %}
  402.                                                         </div>
  403.                                                     {% endblock %}
  404.                                                 {% endif %}
  405.                                             {% endblock %}
  406.                                         {% endblock %}
  407.                                         {% set formGroupMail %}
  408.                                             {% block component_account_register_personal_mail %}
  409.                                                 {% block component_account_register_personal_mail_label %}
  410.                                                     <label class="form-label"
  411.                                                            for="personalMail">
  412.                                                         {{ "account.personalMailLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  413.                                                     </label>
  414.                                                 {% endblock %}
  415.                                                 {% block component_account_register_personal_mail_input %}
  416.                                                     <input type="email"
  417.                                                            class="form-control{% if formViolations.getViolations('/email') is not empty %} is-invalid{% endif %}"
  418.                                                            autocomplete="section-personal email"
  419.                                                            id="personalMail"
  420.                                                            placeholder="{{ "account.personalMailPlaceholder"|trans|striptags }}"
  421.                                                            name="email"
  422.                                                            value="{{ data.get('email') }}"
  423.                                                             {% if config('core.loginRegistration.requireEmailConfirmation') %}
  424.                                                                 data-form-validation-equal="personalMail"
  425.                                                             {% endif %}
  426.                                                            required="required">
  427.                                                 {% endblock %}
  428.                                                 {% block component_account_register_personal_mail_input_error %}
  429.                                                     {% if formViolations.getViolations('/email') is not empty %}
  430.                                                         {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  431.                                                             violationPath: '/email'
  432.                                                         } %}
  433.                                                     {% endif %}
  434.                                                 {% endblock %}
  435.                                             {% endblock %}
  436.                                         {% endset %}
  437.                                         {% set formGroupMailConfirmation %}
  438.                                             {% block component_account_register_personal_mail_confirmation %}
  439.                                                 {% block component_account_register_personal_mail_confirmation_label %}
  440.                                                     <label class="form-label"
  441.                                                            for="personalMailConfirmation">
  442.                                                         {{ "account.personalMailConfirmationLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  443.                                                     </label>
  444.                                                 {% endblock %}
  445.                                                 {% block component_account_register_personal_mail_confirmation_input %}
  446.                                                     <input type="email"
  447.                                                            class="form-control{% if formViolations.getViolations('/email') is not empty or formViolations.getViolations('/emailConfirmation') is not empty %} is-invalid{% endif %}"
  448.                                                            autocomplete="section-personal email"
  449.                                                            id="personalMailConfirmation"
  450.                                                            placeholder="{{ "account.personalMailConfirmationPlaceholder"|trans|striptags }}"
  451.                                                            name="emailConfirmation"
  452.                                                            value="{{ data.get('emailConfirmation') }}"
  453.                                                            data-form-validation-equal="personalMail"
  454.                                                            data-form-validation-equal-message="{{ "account.personalMailConfirmationInvalidMessage"|trans|striptags }}"
  455.                                                            required="required">
  456.                                                 {% endblock %}
  457.                                                 {% block component_account_register_personal_mail_confirmation_input_error %}
  458.                                                     {% if formViolations.getViolations('/email') is not empty %}
  459.                                                         {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  460.                                                             violationPath: '/email'
  461.                                                         } %}
  462.                                                     {% endif %}
  463.                                                     {% if formViolations.getViolations('/emailConfirmation') is not empty %}
  464.                                                         {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  465.                                                             violationPath: '/emailConfirmation'
  466.                                                         } %}
  467.                                                     {% endif %}
  468.                                                 {% endblock %}
  469.                                             {% endblock %}
  470.                                         {% endset %}
  471.                                         {% set formGroupPassword %}
  472.                                             {% block component_account_register_personal_password %}
  473.                                                 <span class="js-form-field-toggle-guest-mode">
  474.                                             {% block component_account_register_personal_password_label %}
  475.                                                 <label class="form-label"
  476.                                                        for="personalPassword">
  477.                                                     {{ "account.personalPasswordLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  478.                                                 </label>
  479.                                             {% endblock %}
  480.                                                     {% block component_account_register_personal_password_input %}
  481.                                                         <input type="password"
  482.                                                                class="form-control{% if formViolations.getViolations('/password') is not empty %} is-invalid{% endif %}"
  483.                                                                autocomplete="new-password"
  484.                                                                id="personalPassword"
  485.                                                                placeholder="{{ "account.personalPasswordPlaceholder"|trans|striptags }}"
  486.                                                                name="password"
  487.                                                                minlength="{{ config('core.loginRegistration.passwordMinLength') }}"
  488.                                                        {% if config('core.loginRegistration.requirePasswordConfirmation') %}
  489.                                                            data-form-validation-equal="newPassword"
  490.                                                        {% endif %}
  491.                                                                 {% if config('core.loginRegistration.passwordMinLength') != 0 %}
  492.                                                                     data-form-validation-length="{{ config('core.loginRegistration.passwordMinLength') }}"
  493.                                                                     data-form-validation-length-message=" {{ "account.personalPasswordDescription"|trans({
  494.                                                                         '%minLength%': config('core.loginRegistration.passwordMinLength')
  495.                                                                     })|sw_sanitize }}"
  496.                                                                 {% endif %}
  497.                                                        required="required">
  498.                                                     {% endblock %}
  499.                                                     {% block component_account_register_personal_password_description %}
  500.                                                         {% if config('core.loginRegistration.passwordMinLength') != 0 %}
  501.                                                             <small class="form-text js-validation-message"
  502.                                                                    data-form-validation-length-text="true">
  503.                                                         {{ "account.personalPasswordDescription"|trans({
  504.                                                             '%minLength%': config('core.loginRegistration.passwordMinLength')
  505.                                                         })|sw_sanitize }}
  506.                                                     </small>
  507.                                                         {% endif %}
  508.                                                     {% endblock %}
  509.                                                     {% block component_account_register_personal_password_input_error %}
  510.                                                         {% if formViolations.getViolations('/password') is not empty %}
  511.                                                             {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  512.                                                                 violationPath: '/password'
  513.                                                             } %}
  514.                                                         {% endif %}
  515.                                                     {% endblock %}
  516.                                         </span>
  517.                                             {% endblock %}
  518.                                         {% endset %}
  519.                                         {% set formGroupPasswordConfirmation %}
  520.                                             {% block component_account_register_personal_password_confirmation %}
  521.                                                 <span class="js-form-field-toggle-guest-mode">
  522.                                             {% block component_account_register_personal_password_confirmation_label %}
  523.                                                 <label class="form-label"
  524.                                                        for="personalPasswordConfirmation">
  525.                                                     {{ "account.personalPasswordConfirmationLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  526.                                                 </label>
  527.                                             {% endblock %}
  528.                                                     {% block component_account_register_personal_password_confirmation_input %}
  529.                                                         <input type="password"
  530.                                                                class="form-control{% if formViolations.getViolations('/password') is not empty or formViolations.getViolations('/passwordConfirmation') is not empty %} is-invalid{% endif %}"
  531.                                                                autocomplete="new-password"
  532.                                                                id="personalPasswordConfirmation"
  533.                                                                placeholder="{{ "account.personalPasswordConfirmationPlaceholder"|trans|striptags }}"
  534.                                                                name="passwordConfirmation"
  535.                                                                minlength="{{ config('core.loginRegistration.passwordMinLength') }}"
  536.                                                                data-form-validation-equal="newPassword"
  537.                                                                data-form-validation-equal-message="{{ "account.personalPasswordConfirmationInvalidMessage"|trans|striptags }}"
  538.                                                                required="required">
  539.                                                     {% endblock %}
  540.                                                     {% block component_account_register_personal_password_confirmation_input_error %}
  541.                                                         {% if formViolations.getViolations('/password') is not empty %}
  542.                                                             {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  543.                                                                 violationPath: '/password'
  544.                                                             } %}
  545.                                                         {% endif %}
  546.                                                         {% if formViolations.getViolations('/passwordConfirmation') is not empty %}
  547.                                                             {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  548.                                                                 violationPath: '/passwordConfirmation'
  549.                                                             } %}
  550.                                                         {% endif %}
  551.                                                     {% endblock %}
  552.                                         </span>
  553.                                             {% endblock %}
  554.                                         {% endset %}
  555.                                         <div class="form-row">
  556.                                             <div class="form-group col-md-6">
  557.                                                 <label class="form-label" for="billingAddressdepartment">
  558.                                                     Abteilung und Position
  559.                                                 </label>
  560.                                                 <input type="text" class="form-control" id="billingAddressdepartment" placeholder="Abteilung eingeben ..." name="billingAddress[department]" value="">
  561.                                             </div>
  562.                                         </div>
  563.                                         {% block component_account_register_personal_account_fields %}
  564.                                             <div class="form-row">
  565.                                                 <div class="form-group col-sm-6">
  566.                                                     {{ formGroupMail }}
  567.                                                 </div>
  568.                                                 <div class="form-group col-sm-6">
  569.                                                     {% if config('core.loginRegistration.requireEmailConfirmation') %}
  570.                                                         {{ formGroupMailConfirmation }}
  571.                                                     {% elseif not config('core.loginRegistration.requirePasswordConfirmation') %}
  572.                                                         {{ formGroupPassword }}
  573.                                                     {% endif %}
  574.                                                 </div>
  575.                                                 <div class="form-group col-sm-6">
  576.                                                     {% if config('core.loginRegistration.requireEmailConfirmation') or config('core.loginRegistration.requirePasswordConfirmation') %}
  577.                                                         {{ formGroupPassword }}
  578.                                                     {% endif %}
  579.                                                 </div>
  580.                                                 <div class="form-group col-sm-6">
  581.                                                     {% if config('core.loginRegistration.requirePasswordConfirmation') %}
  582.                                                         {{ formGroupPasswordConfirmation }}
  583.                                                     {% endif %}
  584.                                                 </div>
  585.                                             </div>
  586.                                         {% endblock %}
  587.                                     {% endblock %}
  588.                                 </div>
  589.                             {% endblock %}
  590.                             {% block component_account_register_submit %}
  591.                                 {{ sw_csrf('frontend.account.register.save', {"mode": "input"}) }}
  592.                                 <div class="register-submit">
  593.                                     <button type="submit"
  594.                                             class="btn btn-primary btn-lg">
  595.                                         {{ "account.registerSubmit"|trans|sw_sanitize }}
  596.                                     </button>
  597.                                 </div>
  598.                             {% endblock %}
  599.                         </form>
  600.                     </div>
  601.                 </div>
  602.             </div>
  603.         </div>
  604.     </div>
  605. {% endblock %}