Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)
This commit is contained in:
22
templates/system-configuration/section.html.twig
Normal file
22
templates/system-configuration/section.html.twig
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends kimai_context.modalRequest ? 'form.html.twig' : 'base.html.twig' %}
|
||||
|
||||
{% block main %}
|
||||
|
||||
{% set formEditTemplate = kimai_context.modalRequest ? 'default/_form_modal.html.twig' : 'default/_form.html.twig' %}
|
||||
|
||||
{% for section in sections %}
|
||||
{% set title = section.model.translation|trans({}, section.model.translationDomain) %}
|
||||
{% if title == section.model.translation %}
|
||||
{% set title = section.model.section|trans %}
|
||||
{% endif %}
|
||||
{% embed formEditTemplate with {'title': title, 'form': section.form} %}
|
||||
{% block form_body %}
|
||||
{% for pref in form.children.configuration %}
|
||||
{{ form_widget(pref) }}
|
||||
{% endfor %}
|
||||
{{ form_rest(form) }}
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user