diff options
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/setting.tmpl | 17 |
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> |