templates/bundles/FOSUserBundle/Security/login.html.twig line 1

Open in your IDE?
  1. {% extends "bundles/FOSUserBundle/layout.html.twig" %}
  2. {% trans_default_domain 'FOSUserBundle' %}
  3. {% block stylesheets %}
  4.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
  5.     <link rel="stylesheet" type="text/css" href="/css/login.css" />
  6. {% endblock %}
  7. {% block fos_user_content %}
  8.     <div class="login-wrapper">
  9.         <div class="login-box">
  10.             <div class="brand">Softnauts</div>
  11.             <div class="heading"><i class="fas fa-sign-in-alt"></i> Login</div>
  12.             <form action="{{ path("fos_user_security_check") }}" method="post">
  13.                 {% if error %}
  14.                     <p class="info error">
  15.                         {{ error.messageKey|trans(error.messageData, 'security') }}
  16.                     </p>
  17.                 {% endif %}
  18.                 <p class="info">
  19.                     Please enter your login credentials.
  20.                 </p>
  21.                 {% if csrf_token %}
  22.                     <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
  23.                 {% endif %}
  24.                 <div class="field">
  25.                     <i class="fas fa-user"></i>
  26.                     <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" maxlength="256" placeholder="E-mail address" >
  27.                 </div>
  28.                 <div class="field">
  29.                     <i class="fas fa-lock"></i>
  30.                     <input type="password" id="password" name="_password" required="required" maxlength="256" placeholder="Password">
  31.                 </div>
  32.                 <div class="field">
  33.                     <input type="checkbox" id="remember_me" name="_remember_me" value="on"/>
  34.                     <label for="remember_me">Remember me</label>
  35.                 </div>
  36.                 <input class="submit-button" type="submit" id="_submit" name="_submit" value="Login →" data-wait="Please wait...">
  37.             </form>
  38.         </div>
  39.     </div>
  40. {% endblock fos_user_content %}