2014-03-21 06:15:58 -04:00
|
|
|
{{template "base/head" .}}
|
|
|
|
{{template "base/navbar" .}}
|
2014-03-25 06:44:37 -04:00
|
|
|
<div id="body" class="container" data-page="admin">
|
2014-03-21 06:15:58 -04:00
|
|
|
{{template "admin/nav" .}}
|
2014-03-25 06:44:37 -04:00
|
|
|
<div id="admin-container" class="col-md-9">
|
2014-03-21 06:15:58 -04:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Edit Account
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
|
|
|
<br/>
|
|
|
|
<form action="/admin/users/{{.User.Id}}" method="post" class="form-horizontal">
|
2014-03-22 13:44:02 -04:00
|
|
|
{{.CsrfTokenHtml}}
|
2014-04-10 18:09:57 -04:00
|
|
|
{{template "base/alert" .}}
|
2014-05-05 05:32:47 -04:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-3 control-label">Auth Source: </label>
|
|
|
|
<div class="col-md-7">
|
|
|
|
<select name="logintype" class="form-control">
|
2014-08-08 01:51:02 -04:00
|
|
|
<option value="0-0">Local</option>
|
2014-05-05 05:32:47 -04:00
|
|
|
{{$tp := .User.LoginSource}}
|
|
|
|
{{range $key, $val := .LoginSources}}
|
|
|
|
<option value="{{$val.Type}}-{{$val.Id}}"{{if eq $val.Id $tp}} selected{{end}}>{{$val.Name}}</option>
|
|
|
|
{{end}}
|
|
|
|
</select>
|
|
|
|
</div>
|
2014-05-10 23:56:04 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-3 control-label">Auth Login Name: </label>
|
|
|
|
<div class="col-md-7">
|
2014-05-15 14:46:04 -04:00
|
|
|
<input name="loginname" class="form-control" placeholder="Type auth login's username" value="{{.User.LoginName}}">
|
2014-05-10 23:56:04 -04:00
|
|
|
</div>
|
2014-05-05 05:32:47 -04:00
|
|
|
</div>
|
|
|
|
|
2014-03-21 06:15:58 -04:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-3 control-label">Username: </label>
|
|
|
|
<label class="control-label">{{.User.Name}}</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group {{if .Err_Email}}has-error has-feedback{{end}}">
|
|
|
|
<label class="col-md-3 control-label">Email<strong class="text-danger">*</strong></label>
|
|
|
|
<div class="col-md-7">
|
|
|
|
<input name="email" class="form-control" placeholder="Type account's e-mail address" value="{{.User.Email}}" required="required">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-07-17 22:11:40 -04:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-3 control-label">Password</label>
|
|
|
|
<div class="col-md-7">
|
|
|
|
<input name="passwd" type="password" class="form-control" placeholder="Type account's new password or leave unfilled">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-03-21 06:15:58 -04:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-3 control-label">Website</label>
|
|
|
|
<div class="col-md-7">
|
|
|
|
<input name="website" class="form-control" placeholder="Type account's website URL" value="{{.User.Website}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-3 control-label">Location</label>
|
|
|
|
<div class="col-md-7">
|
|
|
|
<input name="location" class="form-control" placeholder="Type account's current location" value="{{.User.Location}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group {{if .Err_Avatar}}has-error has-feedback{{end}}">
|
|
|
|
<label class="col-md-3 control-label">Gravatar Email<strong class="text-danger">*</strong></label>
|
|
|
|
<div class="col-md-7">
|
|
|
|
<input name="avatar" class="form-control" placeholder="Type account's Gravatar e-mail address" required="required" value="{{.User.AvatarEmail}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-md-7 col-md-offset-3">
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="active" {{if .User.IsActive}}checked{{end}}>
|
2014-06-30 15:12:55 -04:00
|
|
|
<strong>This account is activated</strong>
|
2014-03-21 06:15:58 -04:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-md-7 col-md-offset-3">
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="admin" {{if .User.IsAdmin}}checked{{end}}>
|
2014-06-30 15:12:55 -04:00
|
|
|
<strong>This account has administrator permissions</strong>
|
2014-03-21 06:15:58 -04:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-md-offset-3 col-md-6">
|
|
|
|
<button type="submit" class="btn btn-lg btn-primary btn-block">Update account profile</button>
|
2014-03-22 06:20:00 -04:00
|
|
|
<a type="button" href="/admin/users/{{.User.Id}}/delete" class="btn btn-lg btn-danger btn-block">Delete this account</a>
|
2014-03-21 06:15:58 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-06-30 15:12:55 -04:00
|
|
|
{{template "base/footer" .}}
|