mirror of
https://github.com/kevinpapst/kimai2.git
synced 2024-12-22 12:18:29 +00:00
6a828cc9bd
- 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
36 lines
1.4 KiB
Twig
36 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 %}
|