aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--root/index.tt33
-rw-r--r--root/static/style/ttsite.css28
2 files changed, 40 insertions, 21 deletions
diff --git a/root/index.tt b/root/index.tt
index 927f8a5..7dd2939 100644
--- a/root/index.tt
+++ b/root/index.tt
@@ -1,31 +1,22 @@
<h1>[% l('Login') %]</h1>
-<div id="input_form">
+<div id="login_form">
<form method="post" action="/user">
-
- <table>
- <tr><td>
+ <div id="login_form_inputs">
<label for="username_">[% l('Username') %]</label>
- </td><td>
<input id="username_" type="text" name="username" value="[% c.user.username %]" />
- </td></tr>
+ <br />
- <tr><td>
<label for="password_">[% l('Password') %]</label>
- </td><td>
<input id="password_" type="password" name="password" />
- </td></tr>
-
- <tr><td colspan="2" style="text-align:center;">
- <button type="submit" value="[% l('Login') %]" />[% l('Login') %]</button>&nbsp;&nbsp;
- [% l('or') %]&nbsp;&nbsp;
- <a href="/register">[% l('Register') %]</a>
- </td></tr>
-
- <tr><td colspan="2">
- @todo [% l('Forgotten password?') %]
- </td></tr>
- </table>
-
+ <br />
+ <button type="submit" value="[% l('Login') %]" />[% l('Login') %]</button>
+ </div>
+ <div id="login_form_line">
+ <span><a href="/register">[% l('Register') %]</a> |
+ @todo [% l('Forgotten password?') %]
+ <!--<a href="/forgot_password">[% l('Forgotten password?') %]</a> -->
+ </span>
+ </div>
</form>
</div>
diff --git a/root/static/style/ttsite.css b/root/static/style/ttsite.css
index 19946a9..c48ab81 100644
--- a/root/static/style/ttsite.css
+++ b/root/static/style/ttsite.css
@@ -67,6 +67,34 @@ html, body {
padding: 4px;
}
+#login_form label {
+ text-align:left;
+ float: left;
+ width: 140px;
+}
+
+#login_form {
+ display: block;
+ float: left;
+ margin-bottom: 2.5em;
+}
+
+#login_form_inputs {
+ margin-bottom: 1.5em;
+}
+
+#login_form input:focus {
+ background: #ddf;
+}
+
+#login_form_line span {
+ float: left;
+}
+
+#login_form button {
+ float: right;
+}
+
/* End changes obgr_seneca */
.message {