0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-02-23 21:08:26 +00:00
kevinpapst_kimai2/templates/user/preferences.html.twig
Kevin Papst 6a828cc9bd
Release 2.3.0 (#4412)
- 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
2023-11-08 22:30:22 +01:00

26 lines
827 B
Twig

{% extends 'user/form.html.twig' %}
{% block form_content %}
{% form_theme form 'form/horizontal.html.twig' %}
{% for section in sections %}
{% set show = false %}
{% for pref in form.children.preferences|filter(pref => pref.vars.data.section == section) %}
{% if (pref.children|length > 0) %}
{% set show = true %}
{% endif %}
{% endfor %}
{% if show %}
<fieldset class="form-fieldset form-fieldset-light mb-3">
{% for pref in form.children.preferences|filter(pref => pref.vars.data.section == section)|sort((a, b) => a.vars.data.order <=> b.vars.data.order) %}
{{ form_widget(pref) }}
{% endfor %}
</fieldset>
{% endif %}
{% endfor %}
{% endblock %}