Part-DB-server/templates/security/login.html.twig
Copilot e84bae2807
Make form layout better at wide screens & Make horizontal form column layout configurable via global Twig variables (#1293)
* Initial plan

* Make form column layout configurable with global Twig variables

Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>

* Rename form column Twig globals to shorter names: label_col, input_col, offset_col

Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>

* Fixed remaining places where offsets where used

* Fixed margin of delete button on admin forms

* Rename Twig globals: col_label, col_input, offset_label

Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>

* Added documentation to our twig class variables

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2026-03-07 16:14:58 +01:00

44 lines
1.3 KiB
Twig

{% extends "main_card.html.twig" %}
{% block title %}{% trans %}login.title{% endtrans %}{% endblock %}
{% block card_title %}<h5>
<i class="fa fa-sign-in-alt fa-fw" aria-hidden="true"></i>
{% trans %}login.card_title{% endtrans %}
</h5>
{% endblock %}
{% block content %}
{% if error %}
<div class="alert alert-danger" role="alert">
<strong>{{ error.messageKey|trans(error.messageData, 'security') }}</strong>
</div>
{% endif %}
{{ parent() }}
{% endblock %}
{% block card_content %}
{% if saml_enabled %}
<div class="{{ offset_label }} {{ col_input }}">
<a class="btn btn-secondary" href="{{ path('saml_login') }}"><i class="fa-solid fa-house-user"></i> {% trans %}login.sso_saml_login{% endtrans %}</a>
<p class="text-muted">{% trans %}login.local_login_hint{% endtrans %}</p>
</div>
{% endif %}
{{ form_start(form) }}
{{ form_row(form._username) }}
{{ form_row(form._password) }}
{{ form_row(form._remember_me) }}
{{ form_row(form.submit) }}
{{ form_end(form) }}
{% if allow_email_pw_reset %}
<a class="{{ offset_label }}" href="{{ path('pw_reset_request') }}">{% trans %}pw_reset.password_forget{% endtrans %}</a>
{% endif %}
{% endblock %}