aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/settings/profile.tmpl
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-26 22:33:30 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-26 22:33:30 -0400
commitad2ab6d21496e60e7589c44bdfcc15bba01ae9dd (patch)
tree3886afb2dd6573db8438f36e422a0e948f505345 /templates/user/settings/profile.tmpl
parentb8368f98ffc79a6c6c7bceed50a2989049d3eb1a (diff)
downloadgitea-ad2ab6d21496e60e7589c44bdfcc15bba01ae9dd.tar.gz
gitea-ad2ab6d21496e60e7589c44bdfcc15bba01ae9dd.zip
Add modal to change username
Signed-off-by: Unknwon <joe2010xtmf@163.com>
Diffstat (limited to 'templates/user/settings/profile.tmpl')
-rw-r--r--templates/user/settings/profile.tmpl9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl
index 577b6ee239..4d2251773f 100644
--- a/templates/user/settings/profile.tmpl
+++ b/templates/user/settings/profile.tmpl
@@ -22,6 +22,13 @@
<label class="req" for="username">{{.i18n.Tr "username"}}</label>
<input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="username" name="uname" type="text" value="{{.SignedUser.Name}}" data-uname="{{.SignedUser.Name}}" required />
</div>
+ <div class="white-popup-block mfp-hide" id="change-username-modal">
+ <h1 class="text-red">{{.i18n.Tr "settings.change_username"}}</h1>
+ <p>{{.i18n.Tr "settings.change_username_desc"}}</p>
+ <br>
+ <button class="btn btn-red btn-large btn-radius" id="modal-submit">{{.i18n.Tr "settings.continue"}}</button>
+ <button class="btn btn-large btn-radius popup-modal-dismiss">{{.i18n.Tr "settings.cancel"}}</button>
+ </div>
<div class="field">
<label for="full-name">{{.i18n.Tr "settings.full_name"}}</label>
<input class="ipt ipt-large ipt-radius {{if .Err_FullName}}ipt-error{{end}}" id="full-name" name="fullname" type="text" value="{{.SignedUser.FullName}}" />
@@ -44,7 +51,7 @@
</div>
<div class="field">
<label></label>
- <button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "settings.update_profile"}}</button>
+ <button class="btn btn-green btn-large btn-radius popup-modal" href="#change-username-modal">{{.i18n.Tr "settings.update_profile"}}</button>
</div>
</form>
</div>