templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Se Connecter !{% endblock %}
  3. {% block main %}
  4.     <div class="d-flex flex-column flex-root">
  5.         <!--begin::Authentication - Sign-in -->
  6.         <div class="d-flex flex-column flex-column-fluid bgi-position-y-bottom position-x-center bgi-no-repeat bgi-size-contain bgi-attachment-fixed"
  7.              style="background-image: url({{ asset('assets/theme/media/illustrations/sketchy-1/14.png') }}">
  8.             <!--begin::Content-->
  9.             <div class="d-flex flex-center flex-column flex-column-fluid p-10 pb-lg-20">
  10.                 <!--begin::Logo-->
  11.                 <a href="{{ path('dashboard') }}" class="mb-12">
  12.                     <img alt="Logo" src="{{ asset('logos/logo.png') }}" class="h-40px"/>
  13.                 </a>
  14.                 <!--end::Logo-->
  15.                 <!--begin::Wrapper-->
  16.                 <div class="w-lg-500px bg-body rounded shadow-sm p-10 p-lg-15 mx-auto">
  17.                     <!--begin::Form-->
  18.                     <form class="form w-100" novalidate="novalidate" id="kt_sign_in_form" method="post">
  19.                         <!--begin::Heading-->
  20.                         <div class="text-center mb-10">
  21.                             <!--begin::Title-->
  22.                             <h1 class="text-dark mb-3">Se Connecter</h1>
  23.                             {% for label, messages in app.flashes %}
  24.                                 <div class="alert alert-{{ label }}">
  25.                                     {% for message in messages %}
  26.                                         <p>{{ message | raw }}</p>
  27.                                     {% endfor %}
  28.                                 </div>
  29.                             {% endfor %}
  30.                             {% if error %}
  31.                                 <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  32.                             {% endif %}
  33.                             <!--end::Title-->
  34.                         </div>
  35.                         <!--begin::Heading-->
  36.                         <!--begin::Input group-->
  37.                         <div class="fv-row mb-10">
  38.                             <!--begin::Label-->
  39.                             <label class="form-label fs-6 fw-bolder text-dark">Email</label>
  40.                             <!--end::Label-->
  41.                             <!--begin::Input-->
  42.                             <input class="form-control form-control-lg form-control-solid" type="text" name="email"
  43.                                    autocomplete="off"/>
  44.                             <!--end::Input-->
  45.                         </div>
  46.                         <!--end::Input group-->
  47.                         <!--begin::Input group-->
  48.                         <div class="fv-row mb-10">
  49.                             <!--begin::Wrapper-->
  50.                             <div class="d-flex flex-stack mb-2">
  51.                                 <!--begin::Label-->
  52.                                 <label class="form-label fw-bolder text-dark fs-6 mb-0">Mot de passe</label>
  53.                                 <!--end::Label-->
  54.                                 <!--begin::Link-->
  55.                                 <a href="{{ path('app_forgot_password_request') }}" class="link-primary fs-6 fw-bolder">Mot
  56.                                     de
  57.                                     passe oublié ?</a>
  58.                                 <!--end::Link-->
  59.                             </div>
  60.                             <!--end::Wrapper-->
  61.                             <!--begin::Input-->
  62.                             <input class="form-control form-control-lg form-control-solid" type="password"
  63.                                    name="password" autocomplete="off"/>
  64.                             <!--end::Input-->
  65.                         </div>
  66.                         <!--end::Input group-->
  67.                         <!--begin::Actions-->
  68.                         <div class="text-center">
  69.                             <!--begin::Submit button-->
  70.                             <button type="submit" id="kt_sign_in_submit" class="btn btn-lg btn-primary w-100 mb-5">
  71.                                 <span class="indicator-label">Continue</span>
  72.                                 <span class="indicator-progress">Please wait...
  73.                                     <span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
  74.                             </button>
  75.                             <!--end::Submit button-->
  76.                             <!--begin::Separator-->
  77.                             <div class="text-center text-muted text-uppercase fw-bolder mb-5">Ou</div>
  78.                             <!--end::Separator-->
  79.                             <!--begin::Google link-->
  80.                             <a href="{{ path('connect_google_start') }}" type="button"
  81.                                class="btn btn-light-primary font-weight-bolder px-8 py-4 my-3 font-size-lg">
  82.                                     <span class="svg-icon svg-icon-md">
  83.                                         {{ img_icon(asset('assets/theme/media/svg/brand-logos/google-icon.svg'), 'google', 20, 20) }}
  84.                                     </span>Se connecter avec Google
  85.                             </a>
  86.                             {# <a href="#" class="btn btn-flex flex-center btn-light btn-lg w-100 mb-5">
  87.                                 <img alt="Logo" src="assets/media/svg/brand-logos/google-icon.svg" class="h-20px me-3" />Continue with Google</a> #}
  88.                             <!--end::Google link-->
  89.                         </div>
  90.                         <!--end::Actions-->
  91.                         <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  92.                     </form>
  93.                     <!--end::Form-->
  94.                 </div>
  95.                 <!--end::Wrapper-->
  96.             </div>
  97.             <!--end::Content-->
  98.             <!--begin::Footer-->
  99.             <div class="d-flex flex-center flex-column-auto p-10">
  100.                 <!--begin::Links-->
  101.                 <div class="d-flex align-items-center fw-bold fs-6">
  102.                     <div class="text-dark-50 font-size-lg font-weight-bolder mr-10">
  103.                         <span class="mr-1">2022 ©</span>
  104.                         <a href="https://smartapps.ma" target="_blank" class="text-dark-75 text-hover-primary">Digital
  105.                             Smart Apps</a>
  106.                     </div>
  107.                 </div>
  108.                 <!--end::Links-->
  109.             </div>
  110.             <!--end::Footer-->
  111.         </div>
  112.         <!--end::Authentication - Sign-in-->
  113.     </div>
  114. {% endblock %}