vendor/eckinox/admin-ui-bundle/templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends '@EckinoxAdminUi/base.html.twig' %}
  2. {% block title %}{% trans %}eckinox_admin_ui.titles.log_in{% endtrans %}{% endblock %}
  3. {% block body %}
  4. <div class="main d-flex justify-content-center w-100">
  5.     <main class="content d-flex p-0">
  6.         <div class="container d-flex flex-column">
  7.             <div class="row h-100">
  8.                 <div class="col-sm-10 col-md-8 col-lg-6 mx-auto d-table h-100">
  9.                     <div class="d-table-cell align-middle">
  10.                         <div class="text-center mt-4 mb-4">
  11.                             {% block app_logo_login %}
  12.                                 {% set logo = 'eckinox_admin_ui.app.logo_login'|trans %}
  13.                                 {% if logo != 'eckinox_admin_ui.app.logo_login' %}
  14.                                     <img src="{{ asset(logo|trans) }}" class="login-logo mb-4 w-50" />
  15.                                 {% endif %}
  16.                             {% endblock %}
  17.                             <h1 class="h2">{% trans %}eckinox_admin_ui.titles.log_in{% endtrans %}</h1>
  18.                         </div>
  19.                         <div class="card">
  20.                             <div class="card-body">
  21.                                 <div class="m-sm-4">
  22.                                     <form method="post" id="login_form">
  23.                                        {% if error %}
  24.                                             <div class="alert alert-danger alert-outline-coloured alert-dismissible" role="alert">
  25.                                                 <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  26.                                                 <div class="alert-icon">
  27.                                                     <i class="far fa-fw fa-bell"></i>
  28.                                                 </div>
  29.                                                 <div class="alert-message">
  30.                                                     {{ error.messageKey|trans(error.messageData, 'security') }}
  31.                                                 </div>
  32.                                             </div>
  33.                                         {% endif %}
  34.                                         <div class="mb-3">
  35.                                             <label class="form-label" for="username">
  36.                                                 {% trans %}eckinox_admin_ui.fields.email{% endtrans %}
  37.                                             </label>
  38.                                             <input class="form-control form-control-lg" id="username" type="email" value="{{ last_username }}" name="_username" placeholder="{% trans %}eckinox_admin_ui.placeholders.email{% endtrans %}"  required autofocus />
  39.                                         </div>
  40.                                         <div class="mb-3">
  41.                                             <label class="form-label" for="password">
  42.                                                 {% trans %}eckinox_admin_ui.fields.password{% endtrans %}
  43.                                             </label>
  44.                                             <input class="form-control form-control-lg" id="password" type="password" name="_password" placeholder="{% trans %}eckinox_admin_ui.placeholders.password{% endtrans %}" required />
  45.                                             <small>
  46.                                                 <a href="{{ link_forgot_password }}" class="">{% trans %}eckinox_admin_ui.buttons.forgot_password{% endtrans %}</a>
  47.                                             </small>
  48.                                         </div>
  49.                                         <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
  50.                                         {% if target_path is defined %}
  51.                                             <input type="hidden" name="_target_path" value="{{ target_path }}"/>
  52.                                         {% endif %}
  53.                                         <div>
  54.                                             <div class="form-check align-items-center">
  55.                                                 <input id="_remember_me" type="checkbox" class="form-check-input" name="_remember_me" checked>
  56.                                                 <label class="form-check-label text-small" for="_remember_me">{% trans %}eckinox_admin_ui.fields.remember_me{% endtrans %}</label>
  57.                                             </div>
  58.                                         </div>
  59.                                         <div class="text-center mt-3 d-grid gap-2">
  60.                                             <button type="submit" class="btn btn-lg btn-primary">
  61.                                                 {% trans %}eckinox_admin_ui.buttons.sign_in{% endtrans %}
  62.                                             </button>
  63.                                             {% if facebook_login %}
  64.                                             <div class="d-flex justify-content-between align-items-center separator"><hr><span>Ou</span><hr></div>
  65.                                             <a href="{{ path('eckinox_security_connect_facebook_start') }}" class="btn btn-lg btn-facebook">
  66.                                                 {% trans %}eckinox_admin_ui.buttons.facebook{% endtrans %}
  67.                                             </a>
  68.                                             {% endif %}
  69.                                         </div>
  70.                                     </form>
  71.                                 </div>
  72.                             </div>
  73.                         </div>
  74.                     </div>
  75.                 </div>
  76.             </div>
  77.         </div>
  78.     </main>
  79. </div>
  80. {% endblock %}