mirror of
https://github.com/kevinpapst/kimai2.git
synced 2025-02-23 21:08:26 +00:00

- move user-preferences to edit submenu - unify user preferences with other forms - use light fieldset for all user-edit-forms - support offcanvas elements - allow to dynamically inject toolbar buttons (via plugins) - use interface for formatting dates - improve docker issue template - bump version and composer packages
35 lines
1.4 KiB
Twig
35 lines
1.4 KiB
Twig
{% extends 'user/layout.html.twig' %}
|
|
|
|
{% block profile_content %}
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
{% block form_header %}
|
|
<ul class="nav nav-pills card-header-pills" data-bs-toggle="tabs">
|
|
{% import "user/actions.html.twig" as actions %}
|
|
{% set event = actions(app.user, 'user_forms', tab, {'user': user}) %}
|
|
{% for name, settings in event.actions %}
|
|
<li class="nav-item" role="presentation">
|
|
<a href="{{ settings.url }}" class="nav-link{% if tab == name %} active{% endif %}" role="tab">{{ settings.title|trans({}, settings.translation_domain ?? 'messages') }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endblock %}
|
|
</div>
|
|
{% block form_body %}
|
|
{{ form_start(form) }}
|
|
<div class="card-body {% block form_body_class %}{% endblock %}">
|
|
{% block form_pre_content %}{% endblock %}
|
|
{% block form_content %}
|
|
{{ form_widget(form) }}
|
|
{% endblock %}
|
|
{% block form_post_content %}{% endblock %}
|
|
</div>
|
|
<div class="card-footer">
|
|
<input type="submit" value="{{ 'action.save'|trans }}" class="btn btn-primary" />
|
|
</div>
|
|
{{ form_end(form) }}
|
|
{% endblock %}
|
|
</div>
|
|
|
|
{% endblock %}
|