aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/views/login.rocker.html
blob: 389d82bc9bcc318281f8ddef86ebd7524f20d287 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@args (String message)

@layout.template("Login", RockerContent.NONE, RockerContent.NONE) -> {
<form action="login" method="post">
    <div>
        <label for="username">Username:</label>
        <input id="username" name="username" type="text"/>
    </div>
    <div>
        <label for="password">Password:</label>
        <input id="password" name="password" type="password"/>
    </div>

    <button type="submit">Login</button>

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