aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/views/register.rocker.html
blob: af3d1278cee83739aba612fd7e190f152e9d0fa7 (plain) (blame)
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
@args (String username, String token, String message)

@layout.template("Register", RockerContent.NONE, RockerContent.NONE) -> {
<div class="flex">
    <h1>Register</h1>

    <form action="/user/register" method="post">
        <h3>Please set a password for user "@username"</h3>
        <div>
            <input hidden name="username" type="text" value="@username"/>
            <input hidden name="token" type="text" value="@token"/>
        </div>
        <div>
            <label for="password">Password:</label>
            <input id="password" name="password" required type="password"/>
        </div>
        <div>
            <label for="verifyPassword">Verify password:</label>
            <input id="verifyPassword" name="verifyPassword" required type="password"/>
        </div>

        <div>
            @if (message.length() > 0) {
            <small>@message</small>
            }
        </div>

        <div>
            <button type="submit">Register</button>
        </div>
    </form>
</div>
}