Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)

This commit is contained in:
Kevin Papst
2022-12-31 21:19:55 +01:00
committed by GitHub
parent 95e06746bd
commit 90a0fd8a22
2164 changed files with 83700 additions and 86426 deletions

View File

@@ -2,15 +2,33 @@
{% block profile_content %}
{% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
{% import "macros/widgets.html.twig" as widgets %}
{% block box_title %}{{ ('profile.' ~ tab)|trans }}{% endblock %}
{% block box_body %}
{{ form_start(form) }}
{{ form_widget(form) }}
{% import "user/actions.html.twig" as actions %}
{% set event = actions(app.user, 'user_forms', tab, {'user': user}) %}
<div class="card">
<div class="card-header">
<ul class="nav nav-pills card-header-pills" data-bs-toggle="tabs">
{% 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>
</div>
{% block form_body %}
{{ form_start(form) }}
<div class="card-body">
{% 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" />
{{ form_end(form) }}
</div>
{{ form_end(form) }}
{% endblock %}
{% endembed %}
</div>
{% endblock %}