summaryrefslogtreecommitdiffstats
path: root/templates/org/settings
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-28 01:38:25 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-28 01:38:25 -0400
commit49193bebd283322bb997b7aed09fc7818a881af9 (patch)
tree36d99aba259628c518d903da8c74d70b34413eeb /templates/org/settings
parentad2ab6d21496e60e7589c44bdfcc15bba01ae9dd (diff)
downloadgitea-49193bebd283322bb997b7aed09fc7818a881af9.tar.gz
gitea-49193bebd283322bb997b7aed09fc7818a881af9.zip
UI: Confirmation box
Diffstat (limited to 'templates/org/settings')
-rw-r--r--templates/org/settings/delete.tmpl11
-rw-r--r--templates/org/settings/options.tmpl9
2 files changed, 17 insertions, 3 deletions
diff --git a/templates/org/settings/delete.tmpl b/templates/org/settings/delete.tmpl
index 8b698e0d37..a929fabfe2 100644
--- a/templates/org/settings/delete.tmpl
+++ b/templates/org/settings/delete.tmpl
@@ -12,13 +12,20 @@
<p class="panel-header"><strong>{{.i18n.Tr "org.settings.delete_account"}}</strong></p>
<div class="panel-body panel-content">
<span class="alert alert-red alert-radius block"><i class="octicon octicon-alert"></i>{{.i18n.Tr "org.settings.delete_prompt" | Str2html}}</span>
- <form action="{{AppSubUrl}}/org/{{.Org.LowerName}}/settings/delete" method="post">
+ <form id="delete-org-form" action="{{AppSubUrl}}/org/{{.Org.LowerName}}/settings/delete" method="post">
{{.CsrfTokenHtml}}
<p class="field">
<span class="form-label"></span>
- <button class="btn btn-red btn-large btn-radius" id="delete-org-button">{{.i18n.Tr "org.settings.confirm_delete_account"}}</button>
+ <button class="btn btn-red btn-large btn-radius" id="delete-org-btn" href="#delete-org-modal">{{.i18n.Tr "org.settings.confirm_delete_account"}}</button>
</p>
</form>
+ <div class="white-popup-block mfp-hide" id="delete-org-modal">
+ <h1 class="text-red">{{.i18n.Tr "org.settings.delete_org_title"}}</h1>
+ <p>{{.i18n.Tr "org.settings.delete_org_desc"}}</p>
+ <br>
+ <button class="btn btn-red btn-large btn-radius" id="delete-org-submit">{{.i18n.Tr "settings.continue"}}</button>
+ <button class="btn btn-large btn-radius popup-modal-dismiss">{{.i18n.Tr "settings.cancel"}}</button>
+ </div>
</div>
</div>
</div>
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>