Skip to content
Snippets Groups Projects
Select Git revision
  • ce3f908033ba7d3128d0f99114e7b015bc19f59f
  • main default
  • 35-cgu
  • 34-peertube-support
  • 27-add-autoplay-to-iframe
  • 33-bug-on-youtube-embed-urls
  • RC-Rekall-v1.1-fix_lpo
  • tuleap-140-go-back-to-my-capsules-page-when-i-m-on-capsule-preview-page
  • RC-Rekall-v1.2-fix10
  • RC-Rekall-v1.2-fix9
  • RC-Rekall-v1.2-fix8
  • RC-Rekall-v1.2-fix7
  • RC-Rekall-v1.2-fix6
  • RC-Rekall-v1.2-fix5
  • RC-Rekall-v1.2-fix4
  • RC-Rekall-v1.2-fix3
  • RC-Rekall-v1.2-fix2
  • RC-Rekall-v1.2-fix1
  • RC-Rekall-v1.1-fix-3
  • RC-Rekall-v1.1-fix-2
  • RC-Rekall-v1.1-fix-1
  • RC-Rekall-v1.1-delivered
  • preprod20220209-1535
23 results

login.html.twig

Blame
  • login.html.twig 2.00 KiB
    {% extends 'connexion.html.twig' %}
    
    {% block title %}
        {{ 'login.log_in'|trans }}
    {% endblock %}
    
    {% block body %}
        {% if error %}
            <div class="alert alert-danger col-6 m-auto">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
        {% endif %}
        {% for flashMessage in app.flashes('error') %}
            <div class="text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert" >
                {{ flashMessage }}
            </div>
        {% endfor %}
    
    <form method="post" class="d-flex flex-column justify-content-center">
        <div class="form-group d-flex flex-column m-auto mb-4 mt-4 col-12 col-sm-10 col-md-9 col-lg-8 col-xl-7 col-xxl-5">
            <label for="inputEmail" class="form-label">
                {{ 'general.email'|trans }}
            </label>
            <input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" autocomplete="email" required autofocus>
        </div>
        <div class="form-group d-flex flex-column m-auto mb-4 col-12 col-sm-10 col-md-9 col-lg-8 col-xl-7 col-xxl-5">
            <label for="inputPassword" class="form-label">
                {{ 'general.password'|trans }}
            </label>
            <input type="password" name="password" id="inputPassword" class="form-control" autocomplete="current-password" required>
        </div>
    
        <input type="hidden" name="_csrf_token"
               value="{{ csrf_token('authenticate') }}"
        >
    
        {#
            Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
            See https://symfony.com/doc/current/security/remember_me.html
    
            <div class="checkbox mb-3">
                <label>
                    <input type="checkbox" name="_remember_me"> Remember me
                </label>
            </div>
        #}
    
        <a href="/reset-password" class="m-auto">
            {{ 'login.forgot_password_link'|trans }}
        </a>
    
        <button class="btn btn-primary m-auto mt-4" type="submit">
            {{ 'login.log_in'|trans }}
        </button>
    </form>
    
    {% endblock %}