From 1a699282413c48ef17d2d70bda24a6570d451014 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 11 Jul 2018 09:36:46 +0200 Subject: [PATCH] [Refactor] Create a base settings page This will make it easier to add new settings pages for e.g. privacy settings, applications, etc. later. --- calsocial/templates/settings-base.html | 10 ++++++++++ calsocial/templates/user-settings.html | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 calsocial/templates/settings-base.html diff --git a/calsocial/templates/settings-base.html b/calsocial/templates/settings-base.html new file mode 100644 index 0000000..d86cd21 --- /dev/null +++ b/calsocial/templates/settings-base.html @@ -0,0 +1,10 @@ +{% extends 'base.html' %} + +{% block content %} + +{% endblock %} diff --git a/calsocial/templates/user-settings.html b/calsocial/templates/user-settings.html index 5b10af8..5141f07 100644 --- a/calsocial/templates/user-settings.html +++ b/calsocial/templates/user-settings.html @@ -1,6 +1,8 @@ -{% extends 'base.html' %} +{% extends 'settings-base.html' %} {% block content %} +{{ super() }} +

{% trans %}Settings{% endtrans %}

{{ form.hidden_tag() }}