diff options
author | Unknown <joe2010xtmf@163.com> | 2014-06-22 13:14:03 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-06-22 13:14:03 -0400 |
commit | 9924e65ca11770f247723b10fcbdb81dc9534b32 (patch) | |
tree | 23995a2838ac24c88ebfd9267b567ec7e4f1a05c /templates/admin/user/edit.tmpl | |
parent | c280415e0b449b420f4540886b8e16ae3c9e6454 (diff) | |
download | gitea-9924e65ca11770f247723b10fcbdb81dc9534b32.tar.gz gitea-9924e65ca11770f247723b10fcbdb81dc9534b32.zip |
In progress of name template name constant
Diffstat (limited to 'templates/admin/user/edit.tmpl')
-rw-r--r-- | templates/admin/user/edit.tmpl | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl new file mode 100644 index 0000000000..b1fffb69c3 --- /dev/null +++ b/templates/admin/user/edit.tmpl @@ -0,0 +1,103 @@ +{{template "base/head" .}} +{{template "base/navbar" .}} +<div id="body" class="container" data-page="admin"> + {{template "admin/nav" .}} + <div id="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"> + {{.CsrfTokenHtml}} + {{template "base/alert" .}} + <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"> + <option value="0-0"{{if eq 0 .User.LoginSource}} selected{{end}}>Local</option> + {{$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> + </div> + + <div class="form-group"> + <label class="col-md-3 control-label">Auth Login Name: </label> + <div class="col-md-7"> + <input name="loginname" class="form-control" placeholder="Type auth login's username" value="{{.User.LoginName}}"> + </div> + </div> + + <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" .}}
\ No newline at end of file |