aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/login.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/login.t b/t/login.t
new file mode 100644
index 0000000..4899507
--- /dev/null
+++ b/t/login.t
@@ -0,0 +1,19 @@
+<% #include "head.tc" %>
+<h1>Log In</h1>
+<% if(*msg){ %>
+<p style="color: red;"><%= msg %></p>
+<% } %>
+<form class="<% if(hlite) printf("hlite-%s", hlite); %>" action="?new=session" method="POST">
+ <table border="0">
+ <tr id="name">
+ <td><label for="name">Username</label></td>
+ <td><input type="text" name="name" value="<% if(name) printhtml(name); %>"></td>
+ </tr>
+ <tr id="pass">
+ <td><label for="pass">Password</label></td>
+ <td><input type="password" name="pass" value=""></td>
+ </tr>
+ </table>
+ <p><input type="submit" value="Log in &rarr;"></p>
+</form>
+<% #include "foot.tc" %> \ No newline at end of file