vendor/shopware/storefront/Resources/views/storefront/component/account/login.html.twig line 124

Open in your IDE?
  1. {% block component_account_login %}
  2.     <div class="card login-card">
  3.         <div class="card-body">
  4.             {% block component_account_login_header %}
  5.                 {% if cardTitle %}
  6.                     <div class="card-title">
  7.                         {{ cardTitle }}
  8.                     </div>
  9.                 {% endif %}
  10.             {% endblock %}
  11.             {% block component_account_login_form %}
  12.                 <form class="login-form"
  13.                       action="{{ path('frontend.account.login') }}"
  14.                       method="post"
  15.                       data-form-csrf-handler="true"
  16.                       data-form-validation="true">
  17.                     {# @deprecated tag:v6.5.0 - Block component_account_login_form_csrf will be removed. #}
  18.                     {% block component_account_login_form_csrf %}
  19.                         {{ sw_csrf('frontend.account.login') }}
  20.                     {% endblock %}
  21.                     {% block component_account_login_form_redirect %}
  22.                         <input type="hidden"
  23.                                name="redirectTo"
  24.                                value="{{ redirectTo }}">
  25.                         <input type="hidden"
  26.                                name="redirectParameters"
  27.                                value="{{ redirectParameters }}">
  28.                     {% endblock %}
  29.                     {% block component_account_login_form_description %}
  30.                         <p class="login-form-description">
  31.                             {{ "account.loginFormDescription"|trans|sw_sanitize }}
  32.                         </p>
  33.                     {% endblock %}
  34.                     {% block component_account_login_form_error %}
  35.                         {% if loginError %}
  36.                             {% if errorSnippet != null %}
  37.                                 {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  38.                                     type: "danger",
  39.                                     content: errorSnippet|trans|sw_sanitize
  40.                                 } %}
  41.                             {% elseif waitTime != null %}
  42.                                 {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  43.                                     type: "info",
  44.                                     content: "account.loginThrottled"|trans({"%seconds%": waitTime})|sw_sanitize
  45.                                 } %}
  46.                             {% else %}
  47.                                 {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  48.                                     type: "danger",
  49.                                     content: "account.loginBadCredentials"|trans|sw_sanitize
  50.                                 } %}
  51.                             {% endif %}
  52.                         {% endif %}
  53.                     {% endblock %}
  54.                     {% block component_account_login_form_fields %}
  55.                         <div class="{{ formRowClass }}">
  56.                             {% block component_account_login_form_mail %}
  57.                                 <div class="form-group col-md-6">
  58.                                     {% block component_account_login_form_mail_label %}
  59.                                         <label class="form-label"
  60.                                                for="loginMail">
  61.                                             {{ "account.loginMailLabel"|trans|sw_sanitize }}
  62.                                         </label>
  63.                                     {% endblock %}
  64.                                     {% block component_account_login_form_mail_input %}
  65.                                         <input type="email"
  66.                                                class="form-control{% if loginError %} is-invalid{% endif %}"
  67.                                                id="loginMail"
  68.                                                placeholder="{{ "account.loginMailPlaceholder"|trans|striptags }}"
  69.                                                name="username"
  70.                                                required="required">
  71.                                     {% endblock %}
  72.                                 </div>
  73.                             {% endblock %}
  74.                             {% block component_account_login_form_password %}
  75.                                 <div class="form-group col-md-6">
  76.                                     {% block component_account_login_form_password_label %}
  77.                                         <label class="form-label"
  78.                                                for="loginPassword">
  79.                                             {{ "account.loginPasswordLabel"|trans|sw_sanitize }}
  80.                                         </label>
  81.                                     {% endblock %}
  82.                                     {% block component_account_login_form_password_input %}
  83.                                         <input type="password"
  84.                                                class="form-control{% if loginError %} is-invalid{% endif %}"
  85.                                                id="loginPassword"
  86.                                                placeholder="{{ "account.loginPasswordPlaceholder"|trans|striptags }}"
  87.                                                name="password"
  88.                                                required="required">
  89.                                     {% endblock %}
  90.                                 </div>
  91.                             {% endblock %}
  92.                         </div>
  93.                     {% endblock %}
  94.                     {% block component_account_login_password_recover %}
  95.                         <div class="login-password-recover">
  96.                             {% block component_account_login_password_recover_link %}
  97.                                 <a href="{{ seoUrl('frontend.account.recover.page') }}">
  98.                                     {{ 'account.loginPasswordRecover'|trans }}
  99.                                 </a>
  100.                             {% endblock %}
  101.                         </div>
  102.                     {% endblock %}
  103.                     {% block component_account_login_submit %}
  104.                         <div class="login-submit">
  105.                             <button type="submit"
  106.                                     class="btn btn-primary">
  107.                                 {{ "account.loginSubmit"|trans|sw_sanitize }}
  108.                             </button>
  109.                         </div>
  110.                     {% endblock %}
  111.                 </form>
  112.             {% endblock %}
  113.         </div>
  114.     </div>
  115. {% endblock %}