Added ability to add user
This commit is contained in:
19
web/templates/add-user.html
Normal file
19
web/templates/add-user.html
Normal file
@ -0,0 +1,19 @@
|
||||
{{define "page-content"}}
|
||||
<form>
|
||||
<input name="username" placeholder="Benutzername" type="text" />
|
||||
<input name="password" placeholder="Passwort" type="password" />
|
||||
<input name="password2" placeholder="Passwort wiederholen" type="password" />
|
||||
|
||||
<input name="first-name" placeholder="Vorname" type="text" />
|
||||
<input name="last-name" placeholder="Nachname" type="text" />
|
||||
|
||||
<label for="writer">Schreiber</label>
|
||||
<input id="writer" name="role" type="radio" value="writer" />
|
||||
<label for="editor">Redakteur</label>
|
||||
<input id="editor" name="role" type="radio" value="editor" />
|
||||
<label for="admin">Admin</label>
|
||||
<input id="admin" name="role" type="radio" value="admin" />
|
||||
|
||||
<input type="submit" value="Anlegen" hx-post="/add-user/" hx-target="#page-content" />
|
||||
</form>
|
||||
{{end}}
|
Reference in New Issue
Block a user