summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorTomek Dubrownik <t.dubrownik@gmail.com>2012-01-27 18:46:30 +0100
committerTomek Dubrownik <t.dubrownik@gmail.com>2012-01-27 18:46:30 +0100
commit29fb2bfa4b166bb203c3fe43938db0f7b797eaaa (patch)
tree3e33533ee4444189601701f552a5b9c652592418 /templates
parent93c374d3cb22d0d68c878fc91e8d2080d86c4416 (diff)
downloadcheckinator-29fb2bfa4b166bb203c3fe43938db0f7b797eaaa.tar.gz
checkinator-29fb2bfa4b166bb203c3fe43938db0f7b797eaaa.tar.bz2
checkinator-29fb2bfa4b166bb203c3fe43938db0f7b797eaaa.tar.xz
checkinator-29fb2bfa4b166bb203c3fe43938db0f7b797eaaa.zip
ffs, forgot to add files to commit
Diffstat (limited to 'templates')
-rw-r--r--templates/claim.html11
-rw-r--r--templates/login.html10
-rw-r--r--templates/main.html1
-rw-r--r--templates/post_claim.html2
-rw-r--r--templates/register.html19
5 files changed, 29 insertions, 14 deletions
diff --git a/templates/claim.html b/templates/claim.html
index ab4243b..f86a3fb 100644
--- a/templates/claim.html
+++ b/templates/claim.html
@@ -1,14 +1,17 @@
<html>
<body>
+<h2>Claiming a device</h2>
{% if not hwaddr %}
<p class="error">Unknown MAC. Are you sure you're in the hackerspace?</p>
{% else %}
-You are about to claim {{ hwaddr }} as {{ login }}. Do you wish to continue?
+You are about to claim <strong>{{ hwaddr }}</strong> as <strong>{{ login }}</strong>. Do you wish to continue?
+<table>
<form action="" method="post">
-<label>Device name (optional):<input type="text" name="name" value="{{ name }}"></label>
-<input type="submit" value="yes">
+<label><tr><td>Device name (optional):</td><td><input type="text" name="name" value="{{ name }}"></td></tr></label>
+<tr><td><input type="submit" value="yes"></td>
</form>
-<a href="/"><button>no</button></button>
+<td><a href="/"><button>no</button></button></td>
+</table>
{% endif %}
</body>
</html>
diff --git a/templates/login.html b/templates/login.html
index 2a3d65a..b4174b8 100644
--- a/templates/login.html
+++ b/templates/login.html
@@ -1,13 +1,17 @@
<html>
<body>
+<h2>Login</h2>
+{% for error in get_flashed_messages() %}
<p class="error">{{ error }}</p>
+{% endfor %}
<form action="" method="POST">
-<label>login<input type="text" name="login" value="{{ login }}"></label>
-<label>password<input type="password" name="password"></label>
+<table>
+<label><tr><td>login</td><td><input type="text" name="login" value="{{ login }}"></td></tr></label>
+<label><tr><td>password</td><td><input type="password" name="password"></td></tr></label>
{% if goto %}
<input type="hidden" name="goto" value="{{ goto }}">
{% endif %}
-<input type="submit" value="login"></input>
+<tr><td></td><td><input type="submit" value="login"></input></td></tr>
</form>
</body>
</html>
diff --git a/templates/main.html b/templates/main.html
index d647833..038afd7 100644
--- a/templates/main.html
+++ b/templates/main.html
@@ -1,5 +1,6 @@
<html>
<body>
+<h2>Now at hackerspace!</h2>
<div class="login">
{% if login %}
logged in as {{ login }} | <a href="logout">log out</a>
diff --git a/templates/post_claim.html b/templates/post_claim.html
index cd24469..981eae2 100644
--- a/templates/post_claim.html
+++ b/templates/post_claim.html
@@ -1,8 +1,10 @@
<html>
<body>
{% if error %}
+<h2>Error!</h2>
<p class="error">{{ error }}</p>
{% else %}
+<h2>Success!</h2>
Congratulations, you just claimed this device!
<a href="/">go back</a>
{% endif %}
diff --git a/templates/register.html b/templates/register.html
index bbe9626..b3ba570 100644
--- a/templates/register.html
+++ b/templates/register.html
@@ -1,14 +1,19 @@
<html>
<body>
+<h2>Register a new account
+{% for error in get_flashed_messages() %}
<p class="error">{{ error }}</p>
+{% endfor %}
<form action="" method="POST">
-<label>login<input type="text" name="login" value="{{ login }}"></label>
-<label>password<input type="password" name="password"></label>
-<label>confirm password<input type="password" name="password2"></label>
-<label>homepage url<input type="text" name="url" value="{{ url }}"></label>
-<label>use wiki page as url<input type="checkbox" name="wiki"
- value="yes" {% if wiki == 'yes' %}checked="yes"{% endif %}></label>
-<input type="submit" value="register"></input>
+<table>
+<label><tr><td>login</td><td><input type="text" name="login" value="{{ login }}"></td></tr></label>
+<label><tr><td>password</td><td><input type="password" name="password"></td></tr></label>
+<label><tr><td>confirm password</td><td><input type="password" name="password2"></td></tr></label>
+<label><tr><td>homepage url</td><td><input type="text" name="url" value="{{ url }}"></td></tr></label>
+<label><tr><td>use wiki page as url</td><td><input type="checkbox" name="wiki"
+ value="yes" {% if wiki == 'yes' %}checked="yes"{% endif %}></td></tr</label>
+<tr><td></td><td><input type="submit" value="register"></input></td></tr>
+</table>
</form>
</body>
</html>