2020-11-15 18:47:30 +01:00
|
|
|
{% extends 'layouts/app.twig' %}
|
2020-11-23 20:41:02 +01:00
|
|
|
{% import 'macros/base.twig' as m %}
|
2020-11-15 18:47:30 +01:00
|
|
|
|
2020-11-24 17:22:52 +01:00
|
|
|
{% block title %}{{ __(title|default(__('settings.settings'))) }}{% endblock %}
|
2020-11-15 18:47:30 +01:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container user-settings">
|
2020-11-24 17:22:52 +01:00
|
|
|
{% block container_title %}
|
2021-12-03 22:27:15 +01:00
|
|
|
<h1 id="settings-title">
|
2021-04-17 14:49:53 +02:00
|
|
|
{{ __('settings.settings') }}
|
2024-03-05 17:42:38 +01:00
|
|
|
<small class="text-muted">
|
|
|
|
{{ block('title') }}
|
|
|
|
{% if is_admin|default(false) %}
|
|
|
|
({{ admin_user.name }})
|
|
|
|
{% endif %}
|
|
|
|
</small>
|
2021-04-17 14:49:53 +02:00
|
|
|
</h1>
|
2020-11-24 17:22:52 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2020-11-15 18:47:30 +01:00
|
|
|
<div class="row">
|
2020-11-23 20:41:02 +01:00
|
|
|
<div class="col-md-3 settings-menu">
|
2021-12-03 22:27:15 +01:00
|
|
|
<ul class="nav nav-pills flex-column mt-3 user-settings">
|
2020-11-24 17:27:21 +01:00
|
|
|
{% for url,title in settings_menu %}
|
2024-04-18 14:29:56 +02:00
|
|
|
{% if not title.permission|default(false) or can(title.permission) %}
|
2024-03-05 17:42:38 +01:00
|
|
|
<li class="nav-item{% if title.hidden|default(false) and url != request.url() %} d-none{% endif %}">
|
|
|
|
<a class="nav-link {% if url == request.url() %}active{% endif %}" href="{{ url }}">
|
|
|
|
{{ m.icon(title.icon ?? 'gear-fill') }}
|
|
|
|
{{ __(title.title ?? title) }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2020-11-15 18:47:30 +01:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2020-11-23 20:41:02 +01:00
|
|
|
<div class="col-md-9">
|
2020-11-15 18:47:30 +01:00
|
|
|
{% include 'layouts/parts/messages.twig' %}
|
|
|
|
|
2020-11-23 20:41:02 +01:00
|
|
|
{% block row_content %}
|
2020-11-24 17:22:52 +01:00
|
|
|
{{ content|raw }}
|
2020-11-23 20:41:02 +01:00
|
|
|
{% endblock %}
|
2020-11-15 18:47:30 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|