summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-03 16:33:27 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-03 16:33:27 -0400
commite9c4156c874ceeecc81fdf7fe00ff2f582110ecd (patch)
tree091d17fbfa89444ab16c97d4c4b8da361a1c6ad8 /templates/user
parent79a610592ea7c2e93ab2f91190af1782c4aa8f8d (diff)
downloadgitea-e9c4156c874ceeecc81fdf7fe00ff2f582110ecd.tar.gz
gitea-e9c4156c874ceeecc81fdf7fe00ff2f582110ecd.zip
Add: rename user
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/setting.tmpl17
1 files changed, 12 insertions, 5 deletions
diff --git a/templates/user/setting.tmpl b/templates/user/setting.tmpl
index 283a8df8bf..f44218cdec 100644
--- a/templates/user/setting.tmpl
+++ b/templates/user/setting.tmpl
@@ -10,30 +10,37 @@
{{if .IsSuccess}}<p class="alert alert-success">Your profile has been successfully updated.</p>{{else if .HasError}}<p class="alert alert-danger form-error">{{.ErrorMsg}}</p>{{end}}
<p>Your Email will be public and used for Account related notifications and any web based operations made via the web.</p>
<div class="form-group">
- <label class="col-md-2 control-label">Email</label>
+ <label class="col-md-2 control-label">Username<strong class="text-danger">*</strong></label>
<div class="col-md-8">
- <input type="text" name="email" class="form-control" placeholder="Type your e-mail address" value="{{.Owner.Email}}">
+ <input name="username" class="form-control" placeholder="Type your user name" required="required" value="{{.SignedUser.Name}}">
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label class="col-md-2 control-label">Email<strong class="text-danger">*</strong></label>
+ <div class="col-md-8">
+ <input name="email" class="form-control" placeholder="Type your e-mail address" required="required" value="{{.SignedUser.Email}}">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Website</label>
<div class="col-md-8">
- <input type="text" name="website" class="form-control" placeholder="Type your website URL" value="{{.Owner.Website}}">
+ <input name="website" class="form-control" placeholder="Type your website URL" value="{{.SignedUser.Website}}">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">Location</label>
<div class="col-md-8">
- <input type="text" name="location" class="form-control" placeholder="Type your current location" value="{{.Owner.Location}}">
+ <input name="location" class="form-control" placeholder="Type your current location" value="{{.SignedUser.Location}}">
</div>
</div>
<div class="form-group {{if .Err_Avatar}}has-error has-feedback{{end}}">
<label class="col-md-2 control-label">Gravatar Email<strong class="text-danger">*</strong></label>
<div class="col-md-8">
- <input type="text" name="avatar" class="form-control" placeholder="Type your Gravatar e-mail address" required="required" value="{{.Owner.AvatarEmail}}">
+ <input name="avatar" class="form-control" placeholder="Type your Gravatar e-mail address" required="required" value="{{.SignedUser.AvatarEmail}}">
</div>
</div>