2018-09-21 21:53:29 -04:00
{{ define "title"}}{{ t "page.edit_user.title" .selected_user.Username }}{{ end }}
2017-11-20 00:10:04 -05:00
{{ define "content"}}
< section class = "page-header" >
2018-09-21 21:53:29 -04:00
< h1 > {{ t "page.edit_user.title" .selected_user.Username }}< / h1 >
2017-11-20 00:10:04 -05:00
< ul >
< li >
2018-09-21 21:53:29 -04:00
< a href = "{{ route " settings " } } " > {{ t "menu.settings" }}< / a >
2017-11-20 00:10:04 -05:00
< / li >
2017-11-21 22:37:47 -05:00
< li >
2018-09-21 21:53:29 -04:00
< a href = "{{ route " integrations " } } " > {{ t "menu.integrations" }}< / a >
2017-11-21 22:37:47 -05:00
< / li >
2017-11-20 00:10:04 -05:00
< li >
2018-09-21 21:53:29 -04:00
< a href = "{{ route " sessions " } } " > {{ t "menu.sessions" }}< / a >
2017-11-20 00:10:04 -05:00
< / li >
< li >
2018-09-21 21:53:29 -04:00
< a href = "{{ route " users " } } " > {{ t "menu.users" }}< / a >
2017-11-20 00:10:04 -05:00
< / li >
< li >
2018-09-21 21:53:29 -04:00
< a href = "{{ route " createUser " } } " > {{ t "menu.add_user" }}< / a >
2017-11-20 00:10:04 -05:00
< / li >
2018-02-01 01:03:21 -05:00
< li >
2018-09-21 21:53:29 -04:00
< a href = "{{ route " about " } } " > {{ t "menu.about" }}< / a >
2018-02-01 01:03:21 -05:00
< / li >
2017-11-20 00:10:04 -05:00
< / ul >
< / section >
< form action = "{{ route " updateUser " " userID " . selected_user . ID } } " method = "post" autocomplete = "off" >
< input type = "hidden" name = "csrf" value = "{{ .csrf }}" >
{{ if .errorMessage }}
< div class = "alert alert-error" > {{ t .errorMessage }}< / div >
{{ end }}
2018-09-21 21:53:29 -04:00
< label for = "form-username" > {{ t "form.user.label.username" }}< / label >
2018-06-30 21:05:51 -04:00
< input type = "text" name = "username" id = "form-username" value = "{{ .form.Username }}" autocomplete = "new-password" required autofocus >
2017-11-20 00:10:04 -05:00
2018-09-21 21:53:29 -04:00
< label for = "form-password" > {{ t "form.user.label.password" }}< / label >
2018-06-30 21:05:51 -04:00
< input type = "password" name = "password" id = "form-password" value = "{{ .form.Password }}" autocomplete = "new-password" >
2017-11-20 00:10:04 -05:00
2018-09-21 21:53:29 -04:00
< label for = "form-confirmation" > {{ t "form.user.label.confirmation" }}< / label >
2018-06-30 21:05:51 -04:00
< input type = "password" name = "confirmation" id = "form-confirmation" value = "{{ .form.Confirmation }}" autocomplete = "new-password" >
2017-11-20 00:10:04 -05:00
2018-09-21 21:53:29 -04:00
< label > < input type = "checkbox" name = "is_admin" value = "1" { { if . form . IsAdmin } } checked { { end } } > {{ t "form.user.label.admin" }}< / label >
2017-11-20 00:10:04 -05:00
< div class = "buttons" >
2018-09-21 21:53:29 -04:00
< button type = "submit" class = "button button-primary" data-label-loading = "{{ t " form . submit . saving " } } " > {{ t "action.update" }}< / button > {{ t "action.or" }} < a href = "{{ route " users " } } " > {{ t "action.cancel" }}< / a >
2017-11-20 00:10:04 -05:00
< / div >
< / form >
{{ end }}