hydra-sql/templates/login.html.twig

29 lines
1.0 KiB
Twig
Raw Normal View History

2022-05-03 08:54:45 +02:00
{% extends "base.html.twig" %}
{% block stylesheets %}
{{parent()}}
2022-05-03 08:54:45 +02:00
{% endblock %}
{% block body %}
<div class="login-wrapper">
<div class="login">
{% if app.user %}
<div class="mb-3">
You are logged in as {{ app.user.login }}
</div>
{% endif %}
<div class="lang">
{% for locale in locales %}
<a href="{{ path('locale_change', {'locale':locale }) }}" title="{{locale}}" aria-label="{{locale}}" class="flag"><img class="w-10" src="{{ asset('flags/'~ locale ~'.svg') }}"/></a>
{% endfor %}
</div>
<h1 class="h3 mb-3 font-weight-normal">{% trans from 'view' %} sign_in {% endtrans %}</h1>
{{form_start(loginForm)}}
{{form_widget(loginForm)}}
<button class="btn btn-lg btn-primary" type="submit">
{% trans from 'view' %} submit {% endtrans %}
</button>
{{form_end(loginForm)}}
2022-05-03 15:09:42 +02:00
</div>
2022-05-03 08:54:45 +02:00
</div>
{% endblock %}