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}}
|
@ -3,6 +3,7 @@
|
||||
<button hx-get="/write-article/" hx-target="#page-content">Artikel schreiben</button>
|
||||
<button hx-get="/rejected-articles/" hx-target="#page-content">Abgelehnte Artikel</button>
|
||||
<button hx-get="/rss/" hx-target="#page-content">RSS Feed</button>
|
||||
<button hx-get="/edit-user/" hx-target="#page-content">Benutzer bearbeiten</button>
|
||||
{{if lt . 2}}
|
||||
<button hx-get="/unpublished-articles/" hx-target="#page-content">Unveröffentlichte Artikel</button>
|
||||
<button hx-get="/create-tag/" hx-target="#page-content">Neuer Tag</button>
|
||||
|
Reference in New Issue
Block a user