2021-07-29 17:29:25 +01:00
|
|
|
{% extends '/stdgrid.html.twig' %}
|
2020-07-26 16:05:07 +01:00
|
|
|
|
|
|
|
{% block title %}{% endblock %}
|
|
|
|
|
2021-10-05 22:44:22 +01:00
|
|
|
{% block stylesheets %}
|
|
|
|
{{ parent() }}
|
|
|
|
<link rel="preload" href="{{ asset('assets/default_theme/css/pages/settings.css') }}" as="style" type="text/css">
|
|
|
|
<link rel="stylesheet" href="{{ asset('assets/default_theme/css/pages/settings.css') }}">
|
|
|
|
{% endblock stylesheets %}
|
|
|
|
|
2020-07-26 16:05:07 +01:00
|
|
|
{% block body %}
|
2021-10-05 16:03:17 +01:00
|
|
|
<nav class='section-settings'>
|
2021-09-25 15:59:16 +01:00
|
|
|
<h2>Settings</h2>
|
2021-08-09 13:25:08 +01:00
|
|
|
<ul>
|
|
|
|
<li>
|
2021-11-15 13:34:34 +00:00
|
|
|
<details class="section-title-settings" {{ open_details(open_details_query, ['profile', 'personal_info']) }} id="profile-details">
|
2021-09-17 01:08:24 +01:00
|
|
|
<summary>
|
2021-09-25 15:59:16 +01:00
|
|
|
<h3>Profile {{ icon('arrow-down', 'icon icon-details-open') | raw }}</h3>
|
2021-09-17 01:08:24 +01:00
|
|
|
<em>Personal Information, Avatar and Profile</em>
|
|
|
|
</summary>
|
|
|
|
|
|
|
|
<section>
|
2021-10-05 16:03:17 +01:00
|
|
|
<nav class='section-settings-nav'>
|
2021-09-17 01:08:24 +01:00
|
|
|
<ul>
|
|
|
|
<li>
|
2021-11-15 13:34:34 +00:00
|
|
|
<details class="section-title-settings" {{ open_details(open_details_query, ['personal_info']) }} id="perosnal-info-details">
|
2021-09-17 01:08:24 +01:00
|
|
|
<summary>
|
|
|
|
<h3>Personal Info{{ icon('arrow-down', 'icon icon-details-open') | raw }}</h3>
|
|
|
|
<em>Nickname, Homepage, Bio, Self Tags and more.</em>
|
|
|
|
</summary>
|
|
|
|
|
|
|
|
{% block form_profile %}{% include '/settings/profile.html.twig' %}{% endblock %}
|
|
|
|
</details>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
{% set profile_tabs = handle_event('PopulateProfileSettingsTabs', app.request) %}
|
|
|
|
{% for tab in profile_tabs %}
|
|
|
|
<li>
|
2021-11-15 13:34:34 +00:00
|
|
|
<details class="section-title-settings"> {# TODO add ID and open_details and to parent #}
|
2021-09-17 01:08:24 +01:00
|
|
|
<summary>
|
|
|
|
<h3>{{ tab['title'] }}{{ icon('arrow-down', 'icon icon-details-open') | raw }}</h3>
|
|
|
|
<em>{{ tab['desc'] }}</em>
|
|
|
|
</summary>
|
|
|
|
|
|
|
|
{% include tab['controller']['_template'] with tab['controller'] only %}
|
|
|
|
|
|
|
|
{# <a href="{{ path(tab['route']) }}"
|
|
|
|
class='hover-effect {{ active(tab['route']) }}'>{{ tab['title'] }}</a> #}
|
|
|
|
|
|
|
|
</details>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</section>
|
2021-08-09 13:25:08 +01:00
|
|
|
</details>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<li>
|
2021-11-15 13:34:34 +00:00
|
|
|
<details class="section-title-settings" {{ open_details(open_details_query, ['account']) }} id="account-details">
|
2021-08-09 13:25:08 +01:00
|
|
|
<summary>
|
2021-09-25 15:59:16 +01:00
|
|
|
<h3>Account{{ icon('arrow-down', 'icon icon-details-open') | raw }}</h3>
|
2021-08-09 13:25:08 +01:00
|
|
|
<em>Email, Password and Language</em>
|
|
|
|
</summary>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
{% block form_account %}
|
|
|
|
{% include '/settings/account.html.twig' %}
|
|
|
|
{% endblock %}
|
|
|
|
</section>
|
|
|
|
</details>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<li>
|
2021-11-15 13:34:34 +00:00
|
|
|
<details class="section-title-settings" {{ open_details(open_details_query, ['notifications']) }} id="notifications-details">
|
2021-08-09 13:25:08 +01:00
|
|
|
<summary>
|
2021-09-25 15:59:16 +01:00
|
|
|
<h3>Notifications{{ icon('arrow-down', 'icon icon-details-open') | raw }}</h3>
|
2021-08-09 13:25:08 +01:00
|
|
|
<em>Enable/disable notifications (Email, XMPP, Replies...)</em>
|
|
|
|
</summary>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
{% block form_notify %}
|
|
|
|
{% include '/settings/notifications.html.twig' %}
|
|
|
|
{% endblock %}
|
|
|
|
</section>
|
|
|
|
</details>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2020-07-26 16:05:07 +01:00
|
|
|
{% endblock body %}
|
|
|
|
|
2021-11-15 13:34:34 +00:00
|
|
|
{% block javascripts %}{% endblock %}
|