custom/plugins/AtcCustom/src/Resources/views/storefront/component/account/register.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@parent/storefront/component/account/register.html.twig' %}
  2. {% block component_account_register_header %}
  3.     {% if cardTitle %}
  4.         {% block component_account_register_title %}
  5.             <div class="h2 card-title">
  6.                 {{ cardTitle }}
  7.             </div>
  8.         {% endblock %}
  9.     {% endif %}
  10. {% endblock %}
  11. {% block component_account_register_address_billing %}
  12.     <div class="h6 register-billing">
  13.         {% block component_account_register_address_billing_header %}
  14.             <div class="h2 card-title">
  15.                 {{ "account.registerAddressBillingHeader"|trans|sw_sanitize }}
  16.             </div>
  17.         {% endblock %}
  18.         {% block component_account_register_address_billing_fields %}
  19.             {% sw_include '@Storefront/storefront/component/address/address-form.html.twig' with {
  20.                 'prefix': 'billingAddress',
  21.                 'data': data.get('billingAddress'),
  22.                 'showNoShippingPostfix': true,
  23.             } %}
  24.         {% endblock %}
  25.         {% block component_address_form_phone_number_label %}
  26.             <label class="form-label"
  27.                     for="{{ idPrefix ~ prefix }}AddressPhoneNumber">
  28.                 {{ "address.phoneNumberLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  29.             </label>
  30.         {% endblock %}
  31.         {% block component_address_form_phone_number_input %}
  32.             {% if formViolations.getViolations("/phoneNumber") is not empty %}
  33.                 {% set violationPath = "/phoneNumber" %}
  34.             {% elseif formViolations.getViolations("/#{prefix}/phoneNumber") is not empty %}
  35.                 {% set violationPath = "/#{prefix}/phoneNumber" %}
  36.             {% endif %}
  37.             <input type="text"
  38.                     class="col-sm-12 col-md-6 form-control {% if violationPath %} is-invalid{% endif %}"
  39.                     id="{{ idPrefix ~ prefix }}AddressPhoneNumber"
  40.                     placeholder="{{ "address.phoneNumberPlaceholder"|trans|striptags }}"
  41.                     name="{{ prefix }}[phoneNumber]"
  42.                     value="{{ data.get('phoneNumber') }}"
  43.                 {{ config('core.loginRegistration.phoneNumberFieldRequired') ? 'required="true"' }}>
  44.         {% endblock %}
  45.     </div>
  46. {% endblock %}
  47. {% block component_account_register_personal_mail_label %}
  48.     <label class="h6 form-label"
  49.             for="personalMail">
  50.         {{ "account.personalMailLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  51.     </label>
  52. {% endblock %}
  53. {% block component_account_register_personal_mail_confirmation_label %}
  54.     <label class="h6 form-label"
  55.             for="personalMailConfirmation">
  56.         {{ "account.personalMailConfirmationLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  57.     </label>
  58. {% endblock %}
  59. {% block component_account_register_personal_password_label %}
  60.     <label class="h6 form-label"
  61.             for="personalPassword">
  62.         {{ "account.personalPasswordLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  63.     </label>
  64. {% endblock %}
  65. {% block component_account_register_personal_password_confirmation_label %}
  66.     <label class="h6 form-label"
  67.             for="personalPasswordConfirmation">
  68.         {{ "account.personalPasswordConfirmationLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }}
  69.     </label>
  70. {% endblock %}