aboutsummaryrefslogtreecommitdiff
path: root/captain/templates
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2022-04-27 12:48:26 -0400
committerJeffrey Armstrong <jeff@approximatrix.com>2022-04-27 12:48:26 -0400
commit6ae21577802462f38d98dd0e5415166008b1b13f (patch)
tree8d8606f15fe24af885b67d0cf30279c64bcd9e3e /captain/templates
parente5a2850b6bb9887b241316be24b3f7047cef6ea3 (diff)
downloadlevitating-6ae21577802462f38d98dd0e5415166008b1b13f.tar.gz
levitating-6ae21577802462f38d98dd0e5415166008b1b13f.zip
Started work on user-facing user stuff for web interface.
Diffstat (limited to 'captain/templates')
-rw-r--r--captain/templates/forgot.html11
-rw-r--r--captain/templates/index.html3
-rw-r--r--captain/templates/login.html20
-rw-r--r--captain/templates/profile.html6
4 files changed, 39 insertions, 1 deletions
diff --git a/captain/templates/forgot.html b/captain/templates/forgot.html
new file mode 100644
index 0000000..595cf9e
--- /dev/null
+++ b/captain/templates/forgot.html
@@ -0,0 +1,11 @@
+{% extends index.html as contents %}
+
+<h2>Forgot Your Password?</h2>
+
+<p>Please enter the email address associated with the account below:</p>
+
+<form id='login' action='{{ base_url }}/forgot.html' method='get' accept-charset='UTF-8' >
+ <label for="email">Email Address:</label>
+ <input type="text" name="email" id="email" />
+ <input type='submit' value="Reset" />
+</form>
diff --git a/captain/templates/index.html b/captain/templates/index.html
index fc4de13..9f7b0ec 100644
--- a/captain/templates/index.html
+++ b/captain/templates/index.html
@@ -18,6 +18,7 @@
<li><a href="{{ base_url }}/instructions.html">Instructions</a></li>
<li><a href="{{ base_url }}/groups.html">Groups</a></li>
<li><a href="{{ base_url }}/about.html">About</a></li>
+ <li><a href="{{ base_url }}/{{ user_link_page }}.html">{{ user_link_text }}</a></li>
</ul>
</div>
<h1 style="overflow: hidden; text-overflow: ellipsis;white-space: nowrap;">{{ title }} - I'm Levitating!</h1>
@@ -30,7 +31,7 @@
</div>
<div class="footing">
- <p>Copyright &copy; 2021 Approximatrix, LLC</p>
+ <p>Copyright &copy; 2022 Approximatrix, LLC</p>
</div>
</body>
diff --git a/captain/templates/login.html b/captain/templates/login.html
new file mode 100644
index 0000000..ab06b26
--- /dev/null
+++ b/captain/templates/login.html
@@ -0,0 +1,20 @@
+{% extends index.html as contents %}
+
+<h2>User Login for the {{ project }} Project</h2>
+
+<form style="text-align:center;" id='login' action='{{ base_url }}/login.html' method='post' accept-charset='UTF-8' >
+ <fieldset >
+ <legend>Existing Users</legend>
+ <p><label for='username' >User Name:</label>
+ <input type='text' name='username' id='username' maxlength="128"/>
+ </p>
+ <p><label for='password' >Password:</label>
+ <input type='password' name='password' id='password' maxlength="72"/>
+ </p>
+ <input type='submit' value="Login" />
+ </fieldset>
+</form>
+
+<p style="color: #f00; text-weight: 700;">{{ login_message }}</p>
+
+<p style="font-size: small;"><em><a href="{{ base_url }}/forgot.html">Forgot Password?</a></em></p>
diff --git a/captain/templates/profile.html b/captain/templates/profile.html
new file mode 100644
index 0000000..c0738c9
--- /dev/null
+++ b/captain/templates/profile.html
@@ -0,0 +1,6 @@
+{% extends index.html as contents %}
+
+<h2>User Profile - {{ username }}</h2>
+
+<p><strong><a href="{{ base_url }}/logout.html">Logout</a></strong></p>
+