diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-28 01:38:25 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-28 01:38:25 -0400 |
commit | 49193bebd283322bb997b7aed09fc7818a881af9 (patch) | |
tree | 36d99aba259628c518d903da8c74d70b34413eeb /templates/org/settings/options.tmpl | |
parent | ad2ab6d21496e60e7589c44bdfcc15bba01ae9dd (diff) | |
download | gitea-49193bebd283322bb997b7aed09fc7818a881af9.tar.gz gitea-49193bebd283322bb997b7aed09fc7818a881af9.zip |
UI: Confirmation box
Diffstat (limited to 'templates/org/settings/options.tmpl')
-rw-r--r-- | templates/org/settings/options.tmpl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl index 793b9c294c..1ed7acb56e 100644 --- a/templates/org/settings/options.tmpl +++ b/templates/org/settings/options.tmpl @@ -19,6 +19,13 @@ <label class="req" for="orgname">{{.i18n.Tr "username"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="orgname" name="uname" value="{{.Org.Name}}" data-orgname="{{.Org.Name}}" required /> </div> + <div class="white-popup-block mfp-hide" id="change-orgname-modal"> + <h1 class="text-red">{{.i18n.Tr "org.settings.change_orgname"}}</h1> + <p>{{.i18n.Tr "org.settings.change_orgname_desc"}}</p> + <br> + <button class="btn btn-red btn-large btn-radius" id="change-orgname-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 "org.settings.full_name"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_FullName}}ipt-error{{end}}" id="full-name" name="fullname" value="{{.Org.FullName}}" /> @@ -45,7 +52,7 @@ </div> <div class="field"> <span class="form-label"></span> - <button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "org.settings.update_settings"}}</button> + <button class="btn btn-green btn-large btn-radius" id="change-orgname-btn" href="#change-orgname-modal">{{.i18n.Tr "org.settings.update_settings"}}</button> </div> </form> </div> |