0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-02-23 21:08:26 +00:00
kevinpapst_kimai2/templates/security/unlock.html.twig
Kevin Papst b42c77a2a1
Release 2.29 (#5325)
* bump composer packages
* fixes #5329 quotes for ANSI_MODE
* improve year selection
* improve year selection via dropdown
* added range selector in month-picker
* fix week number if week starts with sunday
* fix first day of month in URL
* predefined options for week chooser
* z-index issue with sticky table header
* replace duplicated translations
* add logout button to allow user switch without having to re-login in "remember me" login
* new flag to detect if invoice entry is a fixed rate
* improve export column lengths
2025-02-09 00:16:03 +01:00

41 lines
2 KiB
Twig

{% extends 'security/login.html.twig' %}
{% block login_social_auth %}{% endblock %}
{% block password_forgotten %}{% endblock %}
{% block registration %}{% endblock %}
{% block login_box_msg %}{{ 'security.unlock.title'|trans }}{% endblock %}
{% block login_form %}
<p class="text-body-secondary text-center mb-4">
{% block unlock_title %}{{ 'security.unlock.intro'|trans }}{% endblock %}
</p>
<div class="mb-4 text-center">
{% from "macros/widgets.html.twig" import user_avatar, username %}
{{ user_avatar(app.user, false, 'avatar-xl mb-3') }}
<h3>{{ username(app.user) }}</h3>
{% if app.user.title is not empty %}
<p class="text-body-secondary">{{ app.user.title }}</p>
{% endif %}
</div>
{% block unlock_form %}
{% if kimai_config.loginFormActive %}
<form action="{{ path('tabler_login_check'|tabler_route) }}" method="post" autocomplete="off" class="login-box-body security-login">
<input type="hidden" name="_remember_me" value="on">
<input type="hidden" name="_username" value="{{ app.user.userIdentifier }}">
<div class="mb-3">
<div class="input-group input-group-flat">
<input name="_password" type="password" tabindex="20" class="form-control" placeholder="{{ 'Password'|trans({}, 'TablerBundle') }}">
</div>
</div>
<div class="form-footer">
<button type="submit" tabindex="40" class="btn btn-primary w-100">
{{ icon('unlocked', true) }} {{ 'security.unlock.button'|trans }}
</button>
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"/>
</form>
{% endif %}
<a class="btn w-100 mt-2" href="{{ path('logout') }}">{{ 'logout'|trans }}</a>
{% endblock %}
{% endblock %}