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
26 lines
827 B
Twig
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 %}
|