diff options
Diffstat (limited to 'tpls')
-rw-r--r-- | tpls/master.tpl | 12 | ||||
-rw-r--r-- | tpls/register.tpl | 21 |
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 |