mirror of
https://github.com/1f349/lavender.git
synced 2024-12-22 07:34:06 +00:00
Allow the admin user to edit themself
This commit is contained in:
parent
ef55d260de
commit
0f37976d35
@ -68,19 +68,15 @@
|
|||||||
<th>{{.UpdatedAt}}</th>
|
<th>{{.UpdatedAt}}</th>
|
||||||
<td>{{.Active}}</td>
|
<td>{{.Active}}</td>
|
||||||
<td>
|
<td>
|
||||||
{{if eq $.CurrentAdmin .Sub}}
|
<form method="GET" action="/manage/users">
|
||||||
<span></span>
|
<input type="hidden" name="offset" value="{{$.Offset}}"/>
|
||||||
{{else}}
|
<input type="hidden" name="edit" value="{{.Sub}}"/>
|
||||||
<form method="GET" action="/manage/users">
|
<button type="submit">Edit</button>
|
||||||
<input type="hidden" name="offset" value="{{$.Offset}}"/>
|
</form>
|
||||||
<input type="hidden" name="edit" value="{{.Sub}}"/>
|
<form method="POST" action="/reset-password">
|
||||||
<button type="submit">Edit</button>
|
<input type="hidden" name="email" value="{{.Email}}"/>
|
||||||
</form>
|
<button type="submit">Send Reset Password Email</button>
|
||||||
<form method="POST" action="/reset-password">
|
</form>
|
||||||
<input type="hidden" name="email" value="{{.Email}}"/>
|
|
||||||
<button type="submit">Send Reset Password Email</button>
|
|
||||||
</form>
|
|
||||||
{{end}}
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user