summaryrefslogtreecommitdiff
path: root/tpls
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-08-29 22:37:05 +0200
committerKevin Chabowski <kevin@kch42.de>2013-08-29 22:37:05 +0200
commit61f137d2cc8ae0199c99493701023b4d862a34ad (patch)
tree5a77a1beb16cfd508486fabf6419f37fc348fc34 /tpls
parent8ecfe7a2fc61caf890e319e7a2f298b71dc90826 (diff)
downloadmailremind-61f137d2cc8ae0199c99493701023b4d862a34ad.tar.gz
mailremind-61f137d2cc8ae0199c99493701023b4d862a34ad.tar.bz2
mailremind-61f137d2cc8ae0199c99493701023b4d862a34ad.zip
Registering accounts is working
Diffstat (limited to 'tpls')
-rw-r--r--tpls/master.tpl12
-rw-r--r--tpls/register.tpl21
2 files changed, 33 insertions, 0 deletions
diff --git a/tpls/master.tpl b/tpls/master.tpl
new file mode 100644
index 0000000..b675598
--- /dev/null
+++ b/tpls/master.tpl
@@ -0,0 +1,12 @@
+<html>
+<head>
+ <title>{{template "title"}} – mailremind</title>
+</head>
+<body>
+ <h1>{{template "title"}}</h1>
+
+ <div class="content">
+ {{template "content" .}}
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/tpls/register.tpl b/tpls/register.tpl
new file mode 100644
index 0000000..a6e0c38
--- /dev/null
+++ b/tpls/register.tpl
@@ -0,0 +1,21 @@
+{{define "title"}}Register{{end}}
+
+{{define "content"}}
+ {{if .Success}}
+ <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>
+ <p>
+ <strong>Timezone:</strong>
+ <select size="0" name="Timezone">
+ {{range .Timezones}}<option value="{{.}}">{{.}}</option>{{end}}
+ </select>
+ </p>
+ <p><input type="submit" /></p>
+ </form>
+ {{end}}
+{{end}} \ No newline at end of file