arche / internal/archesrv/templates/srv_register.html

commit 154431fd
 1{{ define "title" }}Create account — arche forge{{ end }}
 2{{ define "srv_register.html" }}{{ template "head" . }}
 3<div class="container" style="max-width: 360px; margin-top: 60px">
 4    <h2 style="margin-bottom: 16px">Create account</h2>
 5    {{ if .Error }}
 6    <p class="error">{{.Error}}</p>
 7    {{ end }}
 8    <form method="post" action="/register">
 9        {{ if .InviteRequired }}
10        <div class="field">
11            <label>Invite token</label>
12            <input type="text"
13                   name="invite_token"
14                   autofocus
15                   autocomplete="off"
16                   placeholder="paste your invite token" />
17        </div>
18        {{ end }}
19        <div class="field">
20            <label>Username</label>
21            <input
22                type="text"
23                name="username"
24                {{if
25                not
26                .InviteRequired}}autofocus
27                {{ end }}autocomplete="username"
28                />
29            </div>
30            <div class="field">
31                <label>Password</label>
32                <input type="password" name="password" autocomplete="new-password" />
33            </div>
34            <div class="field">
35                <label>Confirm password</label>
36                <input type="password" name="confirm" autocomplete="new-password" />
37            </div>
38            <button type="submit">Register</button>
39            <a href="/login" style="margin-left: 12px; font-size: 13px">Sign in instead</a>
40        </form>
41    </div>
42    {{ template "foot" . }}
43    {{ end }}