summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html1
-rw-r--r--templates/login.html4
-rw-r--r--templates/mgmt.html39
3 files changed, 42 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 8126ae1..ad884cf 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -24,6 +24,7 @@
<nav>
{% if session.username %}
<a href="/logout">Log Off</a>
+ <a href="/mgmt">Hotel Management</a>
{% else %}
<a href="/login">Resident Portal</a>
<a href="/guest">Guest Access</a>
diff --git a/templates/login.html b/templates/login.html
index f0b450e..ea9748e 100644
--- a/templates/login.html
+++ b/templates/login.html
@@ -9,9 +9,9 @@
<h2>D.S. Resident Login</h2>
<form method="post">
<label for="username">Username: </label>
- <input type="text" name="username" autocomplete="username">
+ <input type="text" name="username" id="username" autocomplete="username" />
<label for="password">Password: </label>
- <input type="password" name="password" autocomplete="current-password">
+ <input type="password" name="password" id="password" autocomplete="current-password" />
<button type="submit">Log In</button>
<input type="hidden" name="register" value="0">
</form>
diff --git a/templates/mgmt.html b/templates/mgmt.html
new file mode 100644
index 0000000..e07cc11
--- /dev/null
+++ b/templates/mgmt.html
@@ -0,0 +1,39 @@
+{% extends "base.html" %}
+
+{% block head %}
+<link rel="stylesheet" href="{{ url_for('static', filename='style/mgmt.css') }}">
+{% endblock %}
+
+{% block content %}
+<main class="centered">
+ <h2>Hotel Management</h2>
+ <details name="mgmt" open>
+ <summary>
+ <h3>Lighting Controls</h3>
+ </summary>
+ <form method="post" name="lighting">
+ <input type="hidden" name="action" value="lighting" />
+ <input type="radio" id="lid_5" name="lid" value="5" checked />
+ <label for="lid_5">Target Primary Light</label>
+ <input type="radio" id="lid_19" name="lid" value="19" />
+ <label for="lid_19">Target Auxiliary Light</label>
+ <input type="radio" id="lid_20" name="lid" value="20" />
+ <label for="lid_20">Target Alex's Light</label>
+ <input type="radio" id="lid_custom" name="lid" value="custom" />
+ <label for="lid_custom">Target Custom Light</label>
+ <label for="custom">LID: </label>
+ <input type="number" id="custom" name="custom" value="5" />
+ <hr>
+ <input type="radio" id="set_off" name="set" value="off" checked />
+ <label for="set_off">Set Lights to Off</label>
+ <input type="radio" id="set_on" name="set" value="on" />
+ <label for="set_on">Set Lights to Normal</label>
+ <input type="radio" id="set_color" name="set" value="color" />
+ <label for="set_color">Set Lights to Color</label>
+ <label for="color">Color: </label>
+ <input type="color" id="color" name="color" value="#FF00AA" />
+ <button type="submit">Apply Effects</button>
+ </form>
+ </details>
+</main>
+{% endblock %} \ No newline at end of file