summaryrefslogtreecommitdiffstats
path: root/templates/settings
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-17 08:21:42 -0700
committerAndrew Godwin2022-11-17 12:21:44 -0700
commitf5eafb0ca0af3ed064202abbe99bfbeef8bbb74d (patch)
treed01453e94f371956e7e989351b51e6ed6eb42541 /templates/settings
parent7f8e792402b66dbb4a721be4f44306d528931b86 (diff)
downloadtakahe-f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d.tar.gz
takahe-f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d.tar.bz2
takahe-f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d.zip
Add image/icon upload
Diffstat (limited to 'templates/settings')
-rw-r--r--templates/settings/_menu.html2
-rw-r--r--templates/settings/profile.html19
2 files changed, 20 insertions, 1 deletions
diff --git a/templates/settings/_menu.html b/templates/settings/_menu.html
index bdae143..4f71651 100644
--- a/templates/settings/_menu.html
+++ b/templates/settings/_menu.html
@@ -1,5 +1,5 @@
<nav>
- <a href="#" {% if section == "profile" %}class="selected"{% endif %}>Profile</a>
+ <a href="{% url "settings_profile" %}" {% 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/profile.html b/templates/settings/profile.html
new file mode 100644
index 0000000..1a7c29f
--- /dev/null
+++ b/templates/settings/profile.html
@@ -0,0 +1,19 @@
+{% extends "base.html" %}
+
+{% block title %}Profile - Settings{% endblock %}
+
+{% block content %}
+ {% block menu %}
+ {% include "settings/_menu.html" %}
+ {% endblock %}
+ <form action="." method="POST" enctype="multipart/form-data" >
+ {% csrf_token %}
+ {% for field in form %}
+ {% include "forms/_field.html" %}
+ {% endfor %}
+ <div class="buttons">
+ <a href="{{ request.identity.urls.view }}" class="button secondary">View Profile</a>
+ <button>Save</button>
+ </div>
+ </form>
+{% endblock %}