templates/security/login_ecobio.html.twig line 55

Open in your IDE?
  1. {% extends "template_3/layoutAuth.html.twig" %}
  2. {% block title %}Connexion{% endblock %}
  3.         {% block body %}
  4.         <!--begin::Form-->
  5.             <form class="form w-100" novalidate="novalidate" id="kt_sign_in_form" data-kt-redirect-url="#"  action="{{path('app_login')}}" method="POST">
  6.                 
  7.             {% for mesg in app.session.getflashbag.get('ina') %}
  8.                 <div class="alert alert-info ">{{mesg}}</div>
  9.             {% endfor %}
  10.             {% for mesg in app.session.getflashbag.get('login.user.lock') %}
  11.                 <div class="alert alert-warning ">{{mesg}}</div>
  12.             {% endfor %}
  13.             {% for mesg in app.session.getflashbag.get('login.user.already.login') %}
  14.                 <div class="alert alert-warning ">{{mesg}}</div>
  15.             {% endfor %}
  16.             {% for mesg in app.session.getflashbag.get('login.form.ivalide') %}
  17.                 <div class="alert  alert-danger ">{{mesg}} </div>
  18.             {% endfor %}
  19.             {% for mesg in app.session.getflashbag.get('login.user.prod.erreur') %}
  20.                 <div class="alert alert-danger ">{{mesg}}</div>
  21.             {% endfor %}
  22.             {% for mesg in app.session.getflashbag.get('logout.success') %}
  23.                 <div class="alert alert-success ">{{mesg}}</div>
  24.             {% endfor %}
  25.             {% if error %}
  26.                 <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  27.             {% endif %}
  28.             {% if app.user %}
  29.                 <div class="mb-3">
  30.                     You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Logout</a>
  31.                 </div>
  32.             {% endif %}
  33.                 <!--begin::Heading-->
  34.                 <div class="text-center mb-11">
  35.                     <!--begin::Title-->
  36.                     <h1 class="text-gray-900 fw-bolder mb-3">Connexion</h1>
  37.                     <!--end::Title-->
  38.                     <!--begin::Subtitle-->
  39.                     
  40.                     <!--end::Subtitle=-->
  41.                 </div>
  42.                 <!--begin::Heading-->
  43.                 <!--begin::Login options-->
  44.                 <div class="row g-3 mb-9">
  45.                     <!--begin::Col-->
  46.                     
  47.                     <!--end::Col-->
  48.                 </div>
  49.                 <!--end::Login options-->
  50.                 <!--begin::Separator-->
  51.                 <div class="separator separator-content my-14">
  52.                     <span class="w-125px text-gray-500 fw-semibold fs-7">{{objetAbonne.nom}}</span>
  53.                 </div>
  54.                 <!--end::Separator-->
  55.                 <!--begin::Input group=-->
  56.                 <div class="fv-row mb-8">
  57.                     <!--begin::Email-->
  58.                     
  59.                     <!--end::Email-->
  60.                     <input type="text" value="{{ last_username }}" name="username" id="inputUsername" class="form-control  h-auto form-control-solid py-4 px-8" autocomplete="username" placeholder="{{'site.login.pseudo'|trans}}"  required autofocus>
  61.                 </div>
  62.                 <!--end::Input group=-->
  63.                 <div class="fv-row mb-3">
  64.                     <!--begin::Password-->
  65.                     
  66.                     <input type="password" name="password" id="inputPassword" class="form-control  h-auto form-control-solid py-4 px-8" autocomplete="current-password"  placeholder="{{'site.login.password'|trans}}" required>
  67.                     <!--end::Password-->
  68.                 </div>
  69.                 <!--end::Input group=-->
  70.                 <!--begin::Wrapper-->
  71.                 <div class="d-flex flex-stack flex-wrap gap-3 fs-base fw-semibold mb-8">
  72.                     <div></div>
  73.                     <!--begin::Link-->
  74.                     
  75.                     <!--end::Link-->
  76.                 </div>
  77.                 <!--end::Wrapper-->
  78.                 <!--begin::Submit button-->
  79.                 <div class="d-grid mb-10">
  80.                     <button type="submit" id="kt_sign_in_submit" class="btn btn-primary">
  81.                         <!--begin::Indicator label-->
  82.                         <span class="indicator-label">{{'site.valider'|trans}}</span>
  83.                         <!--end::Indicator label-->
  84.                         <!--begin::Indicator progress-->
  85.                         <span class="indicator-progress">Please wait... 
  86.                         <span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
  87.                         <!--end::Indicator progress-->
  88.                     </button>
  89.                 </div>
  90.                 <!--end::Submit button-->
  91.                 <!--begin::Sign up-->
  92.                 <input type="hidden" name="_csrf_token"
  93.                 value="{{ csrf_token('authenticate') }}"
  94.                 >
  95.            
  96.             <!--end::Form group-->
  97.             <!--end::Action-->
  98.             {% for restoreUrl in app.session.getflashbag.get('restoreUrl') %}
  99.                 <input type="hidden" name="restoreUrl" value="{{restoreUrl}}" />
  100.             {% endfor %}
  101.                 <!--end::Sign up-->
  102.             </form>
  103.             <!--end::Form-->
  104.             
  105.             
  106.         {% endblock %}
  107. {% block scripts %}
  108. {{parent()}}
  109. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  110.     
  111. {% endblock %}