summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/style.css13
-rw-r--r--tpls/login.tpl2
-rw-r--r--tpls/register.tpl10
-rw-r--r--tpls/settings.tpl10
4 files changed, 24 insertions, 11 deletions
diff --git a/static/style.css b/static/style.css
index 5a51c56..1d894b0 100644
--- a/static/style.css
+++ b/static/style.css
@@ -13,7 +13,8 @@ body {
}
#main {
- width: 85%;
+ width: 70%;
+ min-width: 150mm;
margin: 7.5mm auto 10mm;
padding: 0px;
}
@@ -136,4 +137,14 @@ div.error {
div.success {
background: #ddd url(success.png) no-repeat top left;
+}
+
+form.fancy {
+ width: 80mm;
+ margin: auto;
+}
+
+form.fancy input, form.fancy select {
+ height: 4ex;
+ width: 100%;
} \ No newline at end of file
diff --git a/tpls/login.tpl b/tpls/login.tpl
index b3a63e2..7fe4ebc 100644
--- a/tpls/login.tpl
+++ b/tpls/login.tpl
@@ -8,7 +8,7 @@
{{if .Success}}
<div class="success">{{.Success}}</div>
{{else}}
- <form action="/login" method="post" accept-charset="UTF-8">
+ <form action="/login" method="post" accept-charset="UTF-8" class="fancy">
<p><strong>E-Mail</strong> <input type="text" name="Mail" /></p>
<p><strong>Password</strong> <input type="password" name="Password" /></p>
<p><input type="submit" /></p>
diff --git a/tpls/register.tpl b/tpls/register.tpl
index a6e0c38..2fab714 100644
--- a/tpls/register.tpl
+++ b/tpls/register.tpl
@@ -5,12 +5,12 @@
<div class="success">{{.Success}}</div>
{{else}}
{{if .Error}}<div class="error">{{.Error}}</div>{{end}}
- <form action="/register" method="post" accept-charset="UTF-8">
- <p><strong>E-Mail:</strong> <input type="text" name="Mail" /></p>
- <p><strong>Password:</strong> <input type="password" name="Password" /></p>
- <p><strong>Retype Password:</strong> <input type="password" name="RetypePassword" /></p>
+ <form action="/register" method="post" accept-charset="UTF-8" class="fancy">
+ <p><strong>E-Mail</strong><br /><input type="text" name="Mail" /></p>
+ <p><strong>Password</strong><br /><input type="password" name="Password" /></p>
+ <p><strong>Retype Password</strong><br /><input type="password" name="RetypePassword" /></p>
<p>
- <strong>Timezone:</strong>
+ <strong>Timezone</strong><br />
<select size="0" name="Timezone">
{{range .Timezones}}<option value="{{.}}">{{.}}</option>{{end}}
</select>
diff --git a/tpls/settings.tpl b/tpls/settings.tpl
index 605a596..b83520e 100644
--- a/tpls/settings.tpl
+++ b/tpls/settings.tpl
@@ -6,7 +6,7 @@
{{if not .Fatal}}
{{if .Success}}<div class="success">{{.Success}}</div>{{end}}
- <form action="/settings?M=setpasswd" method="post" accept-charset="UTF-8">
+ <form action="/settings?M=setpasswd" method="post" accept-charset="UTF-8" class="fancy">
<h2>Set Password</h2>
<p><strong>Password:</strong> <input type="password" name="Password" /></p>
@@ -14,7 +14,7 @@
<p><input type="submit" /></p>
</form>
- <form action="/settings?M=settimezone" method="post" accept-charset="UTF-8">
+ <form action="/settings?M=settimezone" method="post" accept-charset="UTF-8" class="fancy">
<h2>Set Timezone</h2>
<p>
@@ -26,7 +26,9 @@
<p><input type="submit" /></p>
</form>
- <h2>Delete Account</h2>
- <p><a href="/delete-acc">Delete Account</a></p>
+ <form action="/delete-acc" method="get" class="fancy">
+ <h2>Delete Account</h2>
+ <p><input type="submit" value="Delete Account" /></p>
+ </form>
{{end}}
{{end}} \ No newline at end of file