about summary refs log tree commit diff
path: root/templates/register.html
blob: ea5094f571bdd92f0bcdc681e34e985fbcb76380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{{ define "register" }}

{{ template "head" . }}
<body>
  {{ template "nav" . }}

  <span id="register"></span>
  <h1><a href="#register">Register</a></h1>

  {{ if .logged_in }}
  Already logged in! <a href="/">Return home</a>
  {{ else }}
  <form method="POST" action="/register">
    <table>
      <tr>
        <td><label for="username">Name:</label></td>
        <td><input class="border" type="text" id="username" name="username" autofocus></td>
      </tr>

      <tr>
        <td><label for="password1">Password:</label></td>
        <td><input class="border" type="password" id="password1" name="password1"></td>
      </tr>

      <tr>
        <td><label for="password2">Repeat Password:</label></td>
        <td><input class="border" type="password" id="password2" name="password2"></td>
      </tr>

      <tr>
        <td></td>
        <td><input class="border" type="submit" value="Register"></td>
      </tr>
    </table>
  </form>
  Already registerd? <a href="/login">Login!</a>
  {{ end }}
</body>
{{ template "footer" . }}
{{ end }}