Added ability to edit user info
This commit is contained in:
13
web/templates/edit-user.html
Normal file
13
web/templates/edit-user.html
Normal file
@ -0,0 +1,13 @@
|
||||
{{define "page-content"}}
|
||||
<form>
|
||||
<input name="username" type="text" value="{{.UserName}}" />
|
||||
<input name="first-name" type="text" value="{{.FirstName}}" />
|
||||
<input name="last-name" type="text" value="{{.LastName}}" />
|
||||
|
||||
<input name="old-password" placeholder="Altes Passwort" type="password" />
|
||||
<input name="password" placeholder="Neues Passwort" type="password" />
|
||||
<input name="password2" placeholder="Wiederholen" type="password" />
|
||||
|
||||
<input type="submit" hx-post="/update-user/" hx-target="#page-content" />
|
||||
</form>
|
||||
{{end}}
|
Reference in New Issue
Block a user