1
0
Fork 0
miniflux/template/html/edit_user.html

51 lines
2 KiB
HTML
Raw Normal View History

2017-11-20 00:10:04 -05:00
{{ define "title"}}{{ t "Edit user: %s" .selected_user.Username }}{{ end }}
{{ define "content"}}
<section class="page-header">
2018-03-02 02:06:28 -05:00
<h1>{{ t "Edit user %s" .selected_user.Username }}</h1>
2017-11-20 00:10:04 -05:00
<ul>
<li>
<a href="{{ route "settings" }}">{{ t "Settings" }}</a>
</li>
2017-11-21 22:37:47 -05:00
<li>
<a href="{{ route "integrations" }}">{{ t "Integrations" }}</a>
</li>
2017-11-20 00:10:04 -05:00
<li>
<a href="{{ route "sessions" }}">{{ t "Sessions" }}</a>
</li>
<li>
<a href="{{ route "users" }}">{{ t "Users" }}</a>
</li>
<li>
<a href="{{ route "createUser" }}">{{ t "Add user" }}</a>
</li>
2018-02-01 01:03:21 -05:00
<li>
<a href="{{ route "about" }}">{{ t "About" }}</a>
</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 }}
<label for="form-username">{{ t "Username" }}</label>
<input type="text" name="username" id="form-username" value="{{ .form.Username }}" autocomplete="new-password" required autofocus>
2017-11-20 00:10:04 -05:00
<label for="form-password">{{ t "Password" }}</label>
<input type="password" name="password" id="form-password" value="{{ .form.Password }}" autocomplete="new-password">
2017-11-20 00:10:04 -05:00
<label for="form-confirmation">{{ t "Confirmation" }}</label>
<input type="password" name="confirmation" id="form-confirmation" value="{{ .form.Confirmation }}" autocomplete="new-password">
2017-11-20 00:10:04 -05:00
2017-12-02 22:32:14 -05:00
<label><input type="checkbox" name="is_admin" value="1" {{ if .form.IsAdmin }}checked{{ end }}> {{ t "Administrator" }}</label>
2017-11-20 00:10:04 -05:00
<div class="buttons">
<button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Update" }}</button> {{ t "or" }} <a href="{{ route "users" }}">{{ t "cancel" }}</a>
</div>
</form>
{{ end }}