From 2aaefdbf5e6cadb6ae72489803e8dcda5f8e1592 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Mon, 12 Sep 2022 07:48:25 +0100 Subject: [PATCH] add or update HTML templates (all based around user/accounts). These are very rough templates but they serve as a way to get the logged-in user stuff functionality started. --- templates/index.html | 2 ++ templates/user/dashboard.html | 13 +++++++++++++ templates/user/edit.html | 19 +++++++++++++++++++ templates/user/log-in.html | 16 ++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 templates/user/edit.html create mode 100644 templates/user/log-in.html diff --git a/templates/index.html b/templates/index.html index cbd230d..e18c031 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,4 +2,6 @@ {% block title %}Nicola Ellis & Ritherdon Archive{% endblock %} {% block content %}

Index

+Create Account +Log-In {% endblock %} diff --git a/templates/user/dashboard.html b/templates/user/dashboard.html index 75163ab..f15532d 100644 --- a/templates/user/dashboard.html +++ b/templates/user/dashboard.html @@ -2,4 +2,17 @@ {% block title %}Manage you archive.{% endblock %} {% block content %}

Dashboard

+
+ {% if roles.logged-in %} + Dashboard + Edit Account +
+ + +
+ {% else %} + Home + Log-in + {% endif %} +
{% endblock %} diff --git a/templates/user/edit.html b/templates/user/edit.html new file mode 100644 index 0000000..e58fbfa --- /dev/null +++ b/templates/user/edit.html @@ -0,0 +1,19 @@ +{% extends "layouts/default.html" %} +{% block title%}Edit your accout settings.{%endblock%} +{% block content %} +

Edit Account

+ +
+

Note: Username cannot be changed.

+
+ + + + + + + + +
+
+{% endblock %} diff --git a/templates/user/log-in.html b/templates/user/log-in.html new file mode 100644 index 0000000..36a2eae --- /dev/null +++ b/templates/user/log-in.html @@ -0,0 +1,16 @@ +{% extends "layouts/default.html" %} +{% block title%}Log-in and start doing stuff.{%endblock%} +{% block content %} +

Login

+ +
+
+ + + + + + +
+
+{% endblock %}