diff options
author | Andrew Godwin | 2022-11-17 19:36:25 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-17 19:36:25 -0700 |
commit | adf2449d373bcd07e2b0ce557beeb1f49d1894e4 (patch) | |
tree | f9178fded8a38d02546b098ebb71b3797eb18964 /templates/settings | |
parent | 6adfdbabe0d44c17f32abc9d48a6e252e2a0792e (diff) | |
download | takahe-adf2449d373bcd07e2b0ce557beeb1f49d1894e4.tar.gz takahe-adf2449d373bcd07e2b0ce557beeb1f49d1894e4.tar.bz2 takahe-adf2449d373bcd07e2b0ce557beeb1f49d1894e4.zip |
Add the user settings page too
Diffstat (limited to 'templates/settings')
-rw-r--r-- | templates/settings/_menu.html | 2 | ||||
-rw-r--r-- | templates/settings/login_security.html | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/templates/settings/_menu.html b/templates/settings/_menu.html index d85c878..cc87941 100644 --- a/templates/settings/_menu.html +++ b/templates/settings/_menu.html @@ -8,7 +8,7 @@ </a> {% if request.user.admin %} <h3>Account</h3> - <a href="#" {% if section == "login" %}class="selected"{% endif %}> + <a href="{% url "settings_security" %}" {% if section == "security" %}class="selected"{% endif %}> <i class="fa-solid fa-key"></i> Login & Security </a> <a href="/auth/logout/"> diff --git a/templates/settings/login_security.html b/templates/settings/login_security.html new file mode 100644 index 0000000..701b325 --- /dev/null +++ b/templates/settings/login_security.html @@ -0,0 +1,17 @@ +{% extends "settings/base.html" %} + +{% block subtitle %}Login & Security{% endblock %} + +{% block content %} + <form action="." method="POST"> + {% csrf_token %} + <fieldset> + <legend>Login</legend> + {% include "forms/_field.html" with field=form.email %} + </fieldset> + <fieldset> + <legend>Password</legend> + <p>To change your password, please trigger a <a href="{% url "trigger_reset" %}">password reset</a>. + </fieldset> + </form> +{% endblock %} |