diff options
Diffstat (limited to 'templates/settings')
-rw-r--r-- | templates/settings/_menu.html | 2 | ||||
-rw-r--r-- | templates/settings/profile.html | 19 |
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 %} |