summaryrefslogtreecommitdiffstats
path: root/templates/settings
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-16 17:23:46 -0700
committerAndrew Godwin2022-11-16 17:23:46 -0700
commit44af0d4c59eed1c3715e9044e75c159cfddf54cc (patch)
treed2c87f953de12a526a158f2c03def5eb08b2d203 /templates/settings
parent495e955378d62dc439c4c210785e5d401bc77f64 (diff)
downloadtakahe-44af0d4c59eed1c3715e9044e75c159cfddf54cc.tar.gz
takahe-44af0d4c59eed1c3715e9044e75c159cfddf54cc.tar.bz2
takahe-44af0d4c59eed1c3715e9044e75c159cfddf54cc.zip
Add start of a settings (config) system
Diffstat (limited to 'templates/settings')
-rw-r--r--templates/settings/_settings_identity_menu.html5
-rw-r--r--templates/settings/_settings_system_menu.html3
-rw-r--r--templates/settings/settings_identity.html7
-rw-r--r--templates/settings/settings_system.html18
4 files changed, 33 insertions, 0 deletions
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 @@
+<nav>
+ <a href="#" {% if section == "profile" %}class="selected"{% endif %}>Profile</a>
+ <a href="#" {% if section == "interface" %}class="selected"{% endif %}>Interface</a>
+ <a href="#" {% if section == "filtering" %}class="selected"{% endif %}>Filtering</a>
+</nav>
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 @@
+<nav>
+ <a href="#" {% if section == "basic" %}class="selected"{% endif %}>Basic</a>
+</nav>
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 %}
+ <form action="." method="POST">
+ {% csrf_token %}
+ {% for field in form %}
+ {% include "forms/_field.html" %}
+ {% endfor %}
+ <div class="buttons">
+ <button>Save</button>
+ </div>
+ </form>
+{% endblock %}