diff options
Diffstat (limited to 'src/main/resources/views/admin.rocker.html')
-rw-r--r-- | src/main/resources/views/admin.rocker.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/resources/views/admin.rocker.html b/src/main/resources/views/admin.rocker.html new file mode 100644 index 0000000..26859eb --- /dev/null +++ b/src/main/resources/views/admin.rocker.html @@ -0,0 +1,19 @@ +@args (String message) + +@layout.template("Index", RockerContent.NONE, RockerContent.NONE) -> { +<div class="flex"> + <div> + <h1>Add new user</h1> + <form action="/user/add" method="post"> + <label for="username">Username:</label> + <input autocomplete="off" autofocus id="username" name="username" required type="text"/> + <button type="submit">Generate</button> + </form> + </div> + <div> + @if (message.length() > 0) { + <small>@message</small> + } + </div> +</div> +} |