diff --git a/src/Controller/UserPanel.php b/src/Controller/UserPanel.php
index 063b20dc65..9259e1219e 100644
--- a/src/Controller/UserPanel.php
+++ b/src/Controller/UserPanel.php
@@ -82,8 +82,8 @@ class UserPanel extends Controller
return [
'_template' => 'settings/base.html.twig',
- 'prof' => $personal_form->createView(),
- 'acc' => $account_form->createView(),
+ 'profile' => $personal_form->createView(),
+ 'account' => $account_form->createView(),
'tabbed_forms_notify' => $notifications_form_array,
'open_details_query' => $this->string('open'),
];
diff --git a/templates/settings/account.html.twig b/templates/settings/account.html.twig
deleted file mode 100644
index 255af77a60..0000000000
--- a/templates/settings/account.html.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-{% block form_account %}
-
- {{ form(acc) }}
-
-{% endblock %}
diff --git a/templates/settings/base.html.twig b/templates/settings/base.html.twig
index d24ae25bc4..53b1bec5ce 100644
--- a/templates/settings/base.html.twig
+++ b/templates/settings/base.html.twig
@@ -1,6 +1,6 @@
{% extends '/stdgrid.html.twig' %}
-{% block title %}{% endblock %}
+{% block title %}{{ 'Settings' | trans }}{% endblock %}
{% block stylesheets %}
{{ parent() }}
@@ -8,90 +8,108 @@
{% endblock stylesheets %}
-{% block body %}
-
-
-
-
+ {% elseif title == 'Account' %}
-
-
- Account{{ icon('arrow-down', 'icon icon-details-open') | raw }}
- Email, Password and Language
-
-
-
- {% block form_account %}
- {% include '/settings/account.html.twig' %}
- {% endblock %}
-
-
+ {{ form(context.account) }}
-
-
-
+ {% elseif title == 'Notifications' %}
-
-
- Notifications{{ icon('arrow-down', 'icon icon-details-open') | raw }}
- Enable/disable notifications (Email, XMPP, Replies...)
-
+
+
+
+
+ {% endfor %}
+
+
+
+ {% endif %}
+
+{% endmacro settings_details_container %}
+
+{% block body %}
+
+ Settings
+
+ -
+ {% set profile_tabs = handle_event('PopulateProfileSettingsTabs', app.request) %}
+ {{ _self.settings_details_container('Profile', 'Personal Information, Avatar and Profile', ['profile', 'personal-info'], _context) }}
+
+
+ -
+ {{ _self.settings_details_container('Account', 'Email, Password and Language', ['account'], _context) }}
+
+
+ -
+ {{ _self.settings_details_container('Notifications', 'Enable/disable notifications (Email, XMPP, Replies...)', ['notifications'], _context) }}
diff --git a/templates/settings/notifications.html.twig b/templates/settings/notifications.html.twig
deleted file mode 100644
index 70f14f787b..0000000000
--- a/templates/settings/notifications.html.twig
+++ /dev/null
@@ -1,25 +0,0 @@
-{% block form_notify %}
-
-
-
-
- {% for transport, form_transport in tabbed_forms_notify %}
- -
-
-
- {{ transport }}{{ icon('arrow-down', 'icon icon-details-open') | raw }}
- {{ transport }}'s notification options.
-
-
-
- {{ form(form_transport) }}
-
-
-
-
- {% endfor %}
-
-
-
-
-{% endblock %}
\ No newline at end of file
diff --git a/templates/settings/profile.html.twig b/templates/settings/profile.html.twig
deleted file mode 100644
index 1f48e88d2f..0000000000
--- a/templates/settings/profile.html.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-{% block form_profile %}
-
- {{ form(prof) }}
-
-{% endblock %}
\ No newline at end of file