diff options
author | Marvin Borner | 2019-04-10 17:48:14 +0200 |
---|---|---|
committer | Marvin Borner | 2019-04-10 17:48:14 +0200 |
commit | cf0c64c6445f618cd8cf523d37e455ba669c5d69 (patch) | |
tree | e4259d622f8265123d2556edfb6f7266917b4a53 /src/main/resources | |
parent | a177d54b4bde907ca5b155a5fb1541402e494218 (diff) |
Added basic setup page
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/views/setup.rocker.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/resources/views/setup.rocker.html b/src/main/resources/views/setup.rocker.html new file mode 100644 index 0000000..f9c8357 --- /dev/null +++ b/src/main/resources/views/setup.rocker.html @@ -0,0 +1,25 @@ +@args (String message) + +@layout.template("Setup", RockerContent.NONE, RockerContent.NONE) -> { +<form action="/setup" method="post"> + <div> + <label for="username">Username:</label> + <input id="username" name="username" required type="text"/> + </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> + <button type="submit">Setup</button> + </div> +</form> + +@if (message.length() > 0) { +<small>@message</small> +} +} |