templates/authentication/authenticate.html.twig line 1
{% extends 'base.html.twig' %}{% block bodycont %}<div class="container-fluid bg-dark-gray h-100 bg-image"><div class="row h-100 flex-column flex-md-row align-items-center"><div class="col"></div><div class="col-sm-6"><div class="card bg-dark text-white bg-gradient"><div class="card-body"><!-- Page Header --><div class="border-bottom flex-grow-0"><!-- Page Named and action buttons --><div class="row mb-3 justify-content-between"><div class="col d-flex align-items-center">{% if is_granted('IS_AUTHENTICATED_FULLY') %}<h3 class="mb-0">Already signed in</h3>{% else %}{# <h3 class="mb-0">Authenticate - {{ entity_name | render_title }}</h3>#}<h3 class="mb-0">Sign In</h3>{% endif %}</div><div class="col-auto d-flex align-items-center"><a title="Cancel" href="/"class="btn bg-gradient btn-secondary ms-3"><i class="fas fa-undo"></i><span>Back</span></a></div></div></div><section class="flex-grow-1 position-relative"><div class="w-100 h-100">{% if error %}<div class="alert alert-danger alert-dismissible fade show" role="alert"><strong>Error</strong> {{ error.messageKey|trans(error.messageData, 'security') }}<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>{% endif %}{% for type, flash_messages in app.session.flashBag.all %}{% for flash_message in flash_messages %}<div class="alert alert-{{ type }} alert-dismissible fade show mt-3 mb-0" role="alert">{{ flash_message }}<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>{% endfor %}{% endfor %}{% if is_granted('IS_AUTHENTICATED_FULLY') %}<div class="d-flex justify-content-between mt-3"><a class="btn bg-gradient btn-warning" href="{{ path(path_prefix ~ '_' ~ path_entity_name ~ '_leave') }}">Sign out</a><a class="btn bg-gradient btn-primary" href="{{ path('profile_' ~ path_entity_name ~ '_edit') }}">Profile</a></div>{% else %}<form action="{{ path(path_prefix ~ '_' ~ path_entity_name ~ '_authenticate') }}" method="post"><div class="my-3"><label for="usernameField" class="form-label">Username</label><input type="text" id="usernameField" name="_username" class="form-control"></div><div class="mb-3"><label for="passwordField" class="form-label">Password</label><input type="password" id="passwordField" name="_password" class="form-control" aria-describedby="passwordHelpBlock"><div id="passwordHelpBlock" class="form-text"><a class="btn-link" href="{{ path(path_prefix ~ '_' ~ path_entity_name ~ '_request') }}">Forgotten password?</a></div></div><div class="mb-3"><input type="checkbox" id="remember_me" name="_remember_me" checked/><label for="remember_me">Keep me logged in</label></div><input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"><div class="d-flex justify-content-between"><button class="btn bg-gradient btn-success" type="submit">Sign in</button><a class="btn bg-gradient btn-warning" href="{{ path(path_prefix ~ '_' ~ path_entity_name ~ '_register') }}">Register</a></div></form>{% endif %}</div></section></div></div></div><div class="col"></div></div></div>{% endblock %}{% block javascripts %}{{ parent() }}{{ encore_entry_script_tags('form') }}{% endblock %}