summaryrefslogtreecommitdiff
path: root/tpl/_users/login.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/_users/login.tpl')
-rw-r--r--tpl/_users/login.tpl18
1 files changed, 18 insertions, 0 deletions
diff --git a/tpl/_users/login.tpl b/tpl/_users/login.tpl
new file mode 100644
index 0000000..5857188
--- /dev/null
+++ b/tpl/_users/login.tpl
@@ -0,0 +1,18 @@
+<h1>User login</h1>
+<br />
+% if(check_user) {
+ You are logged in as: <b>%($logged_user%)</b>
+% }
+% if not {
+% if (~ $REQUEST_METHOD POST)
+% echo '<div class="notify_errors">Login failed!</div>'
+<form method="POST" action="" style="text-align: right; float: left;">
+<fieldset>
+ <label>User name: <input type="text" name="user_name" value="%($"post_arg_user_name%)"/></label><br>
+ <label>User password: <input type="password" name="user_password"></label><br>
+ <input name="s" type="submit" value="Login">
+</fieldset>
+</form>
+% }
+
+<br style="clear:left">