2021-07-29 17:29:25 +01:00
|
|
|
{% extends '/stdgrid.html.twig' %}
|
2020-07-26 16:05:07 +01:00
|
|
|
|
2022-02-06 21:37:04 +00:00
|
|
|
{% import 'cards/macros/settings.html.twig' as macros %}
|
2021-12-21 19:03:28 +00:00
|
|
|
|
2021-11-23 21:09:45 +00:00
|
|
|
{% block title %}{{ 'Settings' | trans }}{% endblock %}
|
2020-07-26 16:05:07 +01:00
|
|
|
|
2021-10-05 22:44:22 +01:00
|
|
|
{% block stylesheets %}
|
|
|
|
{{ parent() }}
|
2022-02-08 14:12:59 +00:00
|
|
|
<link rel="preload" href="{{ asset('assets/default_theme/pages/settings.css') }}" as="style" type="text/css">
|
|
|
|
<link rel="stylesheet" href="{{ asset('assets/default_theme/pages/settings.css') }}">
|
2021-10-05 22:44:22 +01:00
|
|
|
{% endblock stylesheets %}
|
|
|
|
|
2021-11-23 21:09:45 +00:00
|
|
|
{% block body %}
|
2022-01-19 23:54:45 +00:00
|
|
|
<nav class='frame-section frame-section-padding'>
|
|
|
|
<h1 class="frame-section-title">Settings</h1>
|
2021-11-23 21:09:45 +00:00
|
|
|
<ul>
|
|
|
|
<li>
|
2021-12-23 14:04:00 +00:00
|
|
|
{% set profile_tabs = [{'title': 'Personal Info', 'desc': 'Nickname, Homepage, Bio and more.', 'id': 'settings-personal-info', 'form': personal_info_form}] %}
|
2021-12-08 17:53:29 +00:00
|
|
|
{% set profile_tabs = profile_tabs|merge(handle_event('PopulateSettingsTabs', app.request, 'profile')) %}
|
2021-12-21 19:03:28 +00:00
|
|
|
{{ macros.settings_details_container('Profile', 'Personal Information, Avatar and Profile', 'settings-profile-details', profile_tabs, _context) }}
|
2021-11-23 21:09:45 +00:00
|
|
|
</li>
|
2021-12-08 18:47:28 +00:00
|
|
|
<li>
|
|
|
|
{% set muting_tabs = handle_event('PopulateSettingsTabs', app.request, 'muting') %}
|
2021-12-21 19:03:28 +00:00
|
|
|
{{ macros.settings_details_container('Muting', 'Blocked tags and actors', 'settings-muting-details', muting_tabs, _context) }}
|
2021-12-08 18:47:28 +00:00
|
|
|
</li>
|
2021-08-09 13:25:08 +01:00
|
|
|
<li>
|
2021-12-21 19:03:28 +00:00
|
|
|
{{ macros.settings_details_element('Email', 'Set incoming and outgoing email settings', 'settings-email-details', email_form, _context) }}
|
2021-12-08 17:53:29 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
2021-12-21 19:03:28 +00:00
|
|
|
{{ macros.settings_details_element('Password', 'Change current password', 'settings-password-details', password_form, _context) }}
|
2021-12-03 02:51:41 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
2021-12-21 19:03:28 +00:00
|
|
|
{{ macros.settings_details_element('Language', 'Select and set language preferences', 'settings-language-details', language_form, _context) }}
|
2021-12-03 02:51:41 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
2021-12-08 17:53:29 +00:00
|
|
|
{% set colour_tabs = handle_event('PopulateSettingsTabs', app.request, 'colours') %}
|
2021-12-21 19:03:28 +00:00
|
|
|
{{ macros.settings_details_container('Colours', 'Customize your interface colours', 'settings-colour-details', colour_tabs, _context) }}
|
2021-08-09 13:25:08 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2021-12-21 19:03:28 +00:00
|
|
|
{{ macros.settings_details_container('Notifications', 'Enable/disable notifications (Email, XMPP, Replies...)', 'notifications', tabbed_forms_notify, _context) }}
|
2021-08-09 13:25:08 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2020-07-26 16:05:07 +01:00
|
|
|
{% endblock body %}
|
|
|
|
|
2021-11-15 13:34:34 +00:00
|
|
|
{% block javascripts %}{% endblock %}
|