aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin
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/admin
parentad2ab6d21496e60e7589c44bdfcc15bba01ae9dd (diff)
downloadgitea-49193bebd283322bb997b7aed09fc7818a881af9.tar.gz
gitea-49193bebd283322bb997b7aed09fc7818a881af9.zip
UI: Confirmation box
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/auth/edit.tmpl9
-rw-r--r--templates/admin/user/edit.tmpl11
2 files changed, 17 insertions, 3 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl
index 9697b77369..77d28f6269 100644
--- a/templates/admin/auth/edit.tmpl
+++ b/templates/admin/auth/edit.tmpl
@@ -100,7 +100,14 @@
<label></label>
<button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "admin.auths.update"}}</button>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- <button class="btn btn-large btn-red btn-radius" id="auth-delete">{{.i18n.Tr "admin.auths.delete"}}</button>
+ <button class="btn btn-large btn-red btn-radius" id="delete-auth-btn" href="#delete-auth-modal">{{.i18n.Tr "admin.auths.delete"}}</button>
+ </div>
+ <div class="white-popup-block mfp-hide" id="delete-auth-modal">
+ <h1 class="text-red">{{.i18n.Tr "admin.auths.delete_auth_title"}}</h1>
+ <p>{{.i18n.Tr "admin.auths.delete_auth_desc"}}</p>
+ <br>
+ <button class="btn btn-red btn-large btn-radius" id="delete-auth-submit">{{.i18n.Tr "settings.continue"}}</button>
+ <button class="btn btn-large btn-radius popup-modal-dismiss">{{.i18n.Tr "settings.cancel"}}</button>
</div>
</form>
</div>
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl
index 3924afec4b..1d4cf806f1 100644
--- a/templates/admin/user/edit.tmpl
+++ b/templates/admin/user/edit.tmpl
@@ -30,7 +30,7 @@
</div>
<div class="field">
<label>{{.i18n.Tr "username"}}</label>
- <label>{{.User.Name}}</label>
+ <label class="text-left">{{.User.Name}}</label>
</div>
<div class="field">
<label class="req" for="email">{{.i18n.Tr "email"}}</label>
@@ -65,8 +65,15 @@
<label></label>
<button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "admin.users.update_profile"}}</button>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- <button class="btn btn-large btn-red btn-radius" id="user-delete">{{.i18n.Tr "admin.users.delete_account"}}</button>
+ <button class="btn btn-large btn-red btn-radius" id="delete-account-btn" href="#delete-account-modal">{{.i18n.Tr "admin.users.delete_account"}}</button>
</div>
+ <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>
</form>
</div>
</div>