From 44af0d4c59eed1c3715e9044e75c159cfddf54cc Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 16 Nov 2022 17:23:46 -0700 Subject: Add start of a settings (config) system --- templates/activities/compose.html | 2 +- templates/activities/home.html | 2 +- templates/base.html | 12 ++++++++++-- templates/settings/_settings_identity_menu.html | 5 +++++ templates/settings/_settings_system_menu.html | 3 +++ templates/settings/settings_identity.html | 7 +++++++ templates/settings/settings_system.html | 18 ++++++++++++++++++ 7 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 templates/settings/_settings_identity_menu.html create mode 100644 templates/settings/_settings_system_menu.html create mode 100644 templates/settings/settings_identity.html create mode 100644 templates/settings/settings_system.html (limited to 'templates') diff --git a/templates/activities/compose.html b/templates/activities/compose.html index ad0457b..dfa6d1e 100644 --- a/templates/activities/compose.html +++ b/templates/activities/compose.html @@ -13,7 +13,7 @@ {% include "forms/_field.html" %} {% endfor %}
- +
{% endblock %} diff --git a/templates/activities/home.html b/templates/activities/home.html index bfa11f7..08e338e 100644 --- a/templates/activities/home.html +++ b/templates/activities/home.html @@ -32,7 +32,7 @@ {{ form.content_warning }}
CW - +
diff --git a/templates/base.html b/templates/base.html index 553a2cc..e392cb9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,6 +11,11 @@ + {% block extra_head %}{% endblock %} @@ -23,8 +28,11 @@ {% if user.is_authenticated %} - Compose - Settings + Compose + Settings + {% if request.user.admin %} + Admin + {% endif %}
{% if not request.identity %} diff --git a/templates/settings/_settings_identity_menu.html b/templates/settings/_settings_identity_menu.html new file mode 100644 index 0000000..bdae143 --- /dev/null +++ b/templates/settings/_settings_identity_menu.html @@ -0,0 +1,5 @@ + diff --git a/templates/settings/_settings_system_menu.html b/templates/settings/_settings_system_menu.html new file mode 100644 index 0000000..fb4da02 --- /dev/null +++ b/templates/settings/_settings_system_menu.html @@ -0,0 +1,3 @@ + diff --git a/templates/settings/settings_identity.html b/templates/settings/settings_identity.html new file mode 100644 index 0000000..cdbf197 --- /dev/null +++ b/templates/settings/settings_identity.html @@ -0,0 +1,7 @@ +{% extends "settings/settings_system.html" %} + +{% block title %}{{ section.title }} - Settings{% endblock %} + +{% block menu %} + {% include "settings/_settings_identity_menu.html" %} +{% endblock %} diff --git a/templates/settings/settings_system.html b/templates/settings/settings_system.html new file mode 100644 index 0000000..c10964f --- /dev/null +++ b/templates/settings/settings_system.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}{{ section.title }} - System Settings{% endblock %} + +{% block content %} + {% block menu %} + {% include "settings/_settings_system_menu.html" %} + {% endblock %} +
+ {% csrf_token %} + {% for field in form %} + {% include "forms/_field.html" %} + {% endfor %} +
+ +
+
+{% endblock %} -- cgit v1.2.3