app/Resources/views/account/login.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %}
  2. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  3. {% block content %}
  4.     <div class="text-center">
  5.         <div class="form-signin mb-5">
  6.             {% if error %}
  7.                 <div class="alert alert-danger">
  8.                     {{ error.getMessage() }}
  9.                 </div>
  10.             {% endif %}
  11.             {{ form_start(form) }}
  12.                 <h1 class="display-3 mb-3 font-weight-normal">{{ 'general.please-sign-in' | trans }}</h1>
  13.                 {{ form_widget(form._username, { 'attr': {'placeholder': 'Username'}}) }}
  14.                 {{ form_widget(form._password, { 'attr': {'placeholder': 'Password'}}) }}
  15.                 <input type="hidden" name="_csrf_token"
  16.                        value="{{ csrf_token('authenticate') }}"
  17.                 >
  18.                 <div class="custom-control custom-checkbox mb-3">
  19.                     <input name="_remember_me" type="checkbox" class="custom-control-input" id="rememberMe">
  20.                     <label class="custom-control-label" for="rememberMe">Remember me</label>
  21.                 </div>
  22.                 {{ form_row(form._submit, {'attr': {'class': 'btn-success btn-lg btn-block mt-4'}}) }}
  23.             {{ form_end(form) }}
  24.             <p>{{ 'account.forgot-password' | trans }} <a href="{{ path('account-password-send-recovery') }}">{{ 'account.password-recovery' | trans }}</a></p>
  25.             <p>{{ 'general.no-account' | trans }} <a href="{{ path('account-register') }}">{{ 'general.register-now' | trans }}</a></p>
  26.             {% include 'account/partial/social_buttons.html.twig' with {'connect': false} %}
  27.         </div>
  28.     </div>
  29. {% endblock %}