aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/settings/delete.tmpl
diff options
context:
space:
mode:
authorPatrick G <geek1011@users.noreply.github.com>2017-03-15 22:39:38 +0000
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-03-15 23:39:38 +0100
commitefbb895ebe33327630195ac52f10bd3d85bbae00 (patch)
tree988e09097921de93e11149fcdff7b3951ae39e90 /templates/user/settings/delete.tmpl
parent03d79983ee40a22039b5fd1a204499977ab87254 (diff)
downloadgitea-efbb895ebe33327630195ac52f10bd3d85bbae00.tar.gz
gitea-efbb895ebe33327630195ac52f10bd3d85bbae00.zip
Cleaner ui for admin, repo settings, and user settings page (#1269) (#1270)
Diffstat (limited to 'templates/user/settings/delete.tmpl')
-rw-r--r--templates/user/settings/delete.tmpl48
1 files changed, 22 insertions, 26 deletions
diff --git a/templates/user/settings/delete.tmpl b/templates/user/settings/delete.tmpl
index 08e8f75d9a..933f383a47 100644
--- a/templates/user/settings/delete.tmpl
+++ b/templates/user/settings/delete.tmpl
@@ -1,33 +1,29 @@
{{template "base/head" .}}
<div class="user settings delete">
+ {{template "user/settings/navbar" .}}
<div class="ui container">
- <div class="ui grid">
- {{template "user/settings/navbar" .}}
- <div class="twelve wide column content">
- {{template "base/alert" .}}
- <h4 class="ui top attached warning header">
- {{.i18n.Tr "settings.delete_account"}}
- </h4>
- <div class="ui attached warning segment">
- <div class="ui red message">
- <p class="text left"><i class="octicon octicon-alert"></i> {{.i18n.Tr "settings.delete_prompt" | Str2html}}</p>
- </div>
- <form class="ui form" id="delete-form" action="{{.Link}}" method="post">
- {{.CsrfTokenHtml}}
- <input class="fake" type="password">
- <div class="inline required field {{if .Err_Password}}error{{end}}">
- <label for="password">{{.i18n.Tr "password"}}</label>
- <input id="password" name="password" type="password" autofocus required>
- </div>
- <div class="ui red button delete-button" data-type="form" data-form="#delete-form">
- {{.i18n.Tr "settings.confirm_delete_account"}}
- </div>
- <div>
- <a href="{{AppSubUrl}}/user/forgot_password?email={{.Email}}">{{.i18n.Tr "auth.forgot_password"}}</a>
- </div>
- </form>
- </div>
+ {{template "base/alert" .}}
+ <h4 class="ui top attached warning header">
+ {{.i18n.Tr "settings.delete_account"}}
+ </h4>
+ <div class="ui attached warning segment">
+ <div class="ui red message">
+ <p class="text left"><i class="octicon octicon-alert"></i> {{.i18n.Tr "settings.delete_prompt" | Str2html}}</p>
</div>
+ <form class="ui form" id="delete-form" action="{{.Link}}" method="post">
+ {{.CsrfTokenHtml}}
+ <input class="fake" type="password">
+ <div class="inline required field {{if .Err_Password}}error{{end}}">
+ <label for="password">{{.i18n.Tr "password"}}</label>
+ <input id="password" name="password" type="password" autofocus required>
+ </div>
+ <div class="ui red button delete-button" data-type="form" data-form="#delete-form">
+ {{.i18n.Tr "settings.confirm_delete_account"}}
+ </div>
+ <div>
+ <a href="{{AppSubUrl}}/user/forgot_password?email={{.Email}}">{{.i18n.Tr "auth.forgot_password"}}</a>
+ </div>
+ </form>
</div>
</div>
</div>