custom/plugins/KayloBasicTheme/src/Resources/views/storefront/component/account/login.html.twig line 1

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