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
This commit is contained in:
@@ -2,18 +2,19 @@
|
||||
|
||||
{% block profile_content %}
|
||||
|
||||
{% import "user/actions.html.twig" as actions %}
|
||||
{% set event = actions(app.user, 'user_forms', tab, {'user': user}) %}
|
||||
|
||||
<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) }}
|
||||
|
||||
Reference in New Issue
Block a user