mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 18:24:14 +01:00
84 lines
No EOL
3.7 KiB
Cheetah
84 lines
No EOL
3.7 KiB
Cheetah
{{template "base/head" .}}
|
|
{{template "base/navbar" .}}
|
|
<div id="gogs-body" class="container" data-page="admin">
|
|
{{template "admin/nav" .}}
|
|
<div id="gogs-admin-container" class="col-md-9">
|
|
<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">
|
|
{{if .IsSuccess}}<p class="alert alert-success">Account profile has been successfully updated.</p>{{else if .HasError}}<p class="alert alert-danger form-error">{{.ErrorMsg}}</p>{{end}}
|
|
{{.CsrfTokenHtml}}
|
|
<input type="hidden" value="{{.User.Id}}" name="userId"/>
|
|
<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>
|
|
|
|
<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}}>
|
|
<strong>This account has activated</strong>
|
|
</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}}>
|
|
<strong>This account has administor permisson</strong>
|
|
</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>
|
|
<a type="button" href="/admin/users/{{.User.Id}}/delete" class="btn btn-lg btn-danger btn-block">Delete this account</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}} |