summaryrefslogtreecommitdiffstats
path: root/templates/user/settings/delete.tmpl
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/user/settings/delete.tmpl
parentad2ab6d21496e60e7589c44bdfcc15bba01ae9dd (diff)
downloadgitea-49193bebd283322bb997b7aed09fc7818a881af9.tar.gz
gitea-49193bebd283322bb997b7aed09fc7818a881af9.zip
UI: Confirmation box
Diffstat (limited to 'templates/user/settings/delete.tmpl')
-rw-r--r--templates/user/settings/delete.tmpl11
1 files changed, 9 insertions, 2 deletions
diff --git a/templates/user/settings/delete.tmpl b/templates/user/settings/delete.tmpl
index cc6bf273d7..a6d3663dbe 100644
--- a/templates/user/settings/delete.tmpl
+++ b/templates/user/settings/delete.tmpl
@@ -11,13 +11,20 @@
<p class="panel-header"><strong>{{.i18n.Tr "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 "settings.delete_prompt" | Str2html}}</span>
- <form action="{{AppSubUrl}}/user/settings/delete" method="post">
+ <form id="delete-account-form" action="{{AppSubUrl}}/user/settings/delete" method="post">
{{.CsrfTokenHtml}}
<p class="field">
<span class="form-label"></span>
- <button class="btn btn-red btn-large btn-radius" id="delete-account-button">{{.i18n.Tr "settings.confirm_delete_account"}}</button>
+ <button class="btn btn-red btn-large btn-radius" id="delete-account-btn" href="#delete-account-modal">{{.i18n.Tr "settings.confirm_delete_account"}}</button>
</p>
</form>
+ <div class="white-popup-block mfp-hide" id="delete-account-modal">
+ <h1 class="text-red">{{.i18n.Tr "settings.delete_account_title"}}</h1>
+ <p>{{.i18n.Tr "settings.delete_account_desc"}}</p>
+ <br>
+ <button class="btn btn-red btn-large btn-radius" id="delete-account-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>