diff options
author | Marvin Borner | 2019-05-05 22:27:42 +0200 |
---|---|---|
committer | Marvin Borner | 2019-05-05 22:27:42 +0200 |
commit | bd89369b508f30fc987b27cf6b34a22fbc8e5d97 (patch) | |
tree | 8bb338a1112b4dae52d9d6d2919be4ce3d9544f9 /src/main/resources/views/admin.rocker.html | |
parent | 5081b240b07f08e21ad124da8bddf0e11471792d (diff) |
Added simple admin interface
Co-authored-by: LarsVomMars <lars@kroenner.eu>
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> +} |