parent
81b8427438
commit
2493454587
File diff suppressed because one or more lines are too long
@ -0,0 +1,4 @@ |
|||||||
|
.user { |
||||||
|
padding-top: 15px; |
||||||
|
padding-bottom: @footer-margin * 3; |
||||||
|
} |
@ -1 +1 @@ |
|||||||
0.6.5.0818 Beta |
0.6.5.0819 Beta |
@ -1,35 +1,51 @@ |
|||||||
{{template "ng/base/head" .}} |
{{template "base/head" .}} |
||||||
{{template "ng/base/header" .}} |
<div class="user settings"> |
||||||
<div id="setting-wrapper" class="main-wrapper"> |
<div class="ui container"> |
||||||
<div id="user-profile-setting" class="container clear"> |
<div class="ui grid"> |
||||||
{{template "user/settings/nav" .}} |
{{template "user/settings/navbar" .}} |
||||||
<div class="grid-4-5 left"> |
<div class="twelve wide column content"> |
||||||
<div class="setting-content"> |
{{template "base/alert" .}} |
||||||
{{template "ng/base/alert" .}} |
<h4 class="ui top attached warning header"> |
||||||
<div id="setting-content"> |
{{.i18n.Tr "settings.delete_account"}} |
||||||
<div id="user-profile-setting-content" class="panel panel-warning panel-radius"> |
</h4> |
||||||
<p class="panel-header"><strong>{{.i18n.Tr "settings.delete_account"}}</strong></p> |
<div class="ui attached warning segment"> |
||||||
<div class="panel-body panel-content"> |
<div class="ui red message"> |
||||||
<span class="alert alert-red alert-radius block"><i class="octicon octicon-alert"></i>{{.i18n.Tr "settings.delete_prompt" | Str2html}}</span> |
<p>{{.i18n.Tr "settings.delete_prompt" | Str2html}}</p> |
||||||
<form id="delete-account-form" action="{{AppSubUrl}}/user/settings/delete" method="post"> |
</div> |
||||||
|
<form class="ui form" id="delete-form" action="{{.Link}}" method="post"> |
||||||
{{.CsrfTokenHtml}} |
{{.CsrfTokenHtml}} |
||||||
<p class="field"> |
<input class="fake" type="password"> |
||||||
<span class="form-label"></span> |
<div class="inline required field {{if .Err_Password}}error{{end}}"> |
||||||
<button class="btn btn-red btn-large btn-radius" id="delete-account-btn" href="#delete-account-modal">{{.i18n.Tr "settings.confirm_delete_account"}}</button> |
<label for="password">{{.i18n.Tr "password"}}</label> |
||||||
</p> |
<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> |
||||||
</form> |
</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> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ui small basic delete modal"> |
||||||
|
<div class="ui icon header"> |
||||||
|
<i class="trash icon"></i> |
||||||
|
{{.i18n.Tr "settings.delete_account_title"}} |
||||||
|
</div> |
||||||
|
<div class="content"> |
||||||
|
<p>{{.i18n.Tr "settings.delete_account_desc"}}</p> |
||||||
|
</div> |
||||||
|
<div class="actions"> |
||||||
|
<div class="ui red basic inverted cancel button"> |
||||||
|
<i class="remove icon"></i> |
||||||
|
{{.i18n.Tr "modal.no"}} |
||||||
</div> |
</div> |
||||||
|
<div class="ui green basic inverted ok button"> |
||||||
|
<i class="checkmark icon"></i> |
||||||
|
{{.i18n.Tr "modal.yes"}} |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
{{template "ng/base/footer" .}} |
{{template "base/footer" .}} |
@ -0,0 +1,28 @@ |
|||||||
|
<div class="four wide column"> |
||||||
|
<div class="ui vertical menu"> |
||||||
|
<div class="header item">{{.i18n.Tr "settings"}}</div> |
||||||
|
<a class="{{if .PageIsSettingsProfile}}active{{end}} item" href="{{AppSubUrl}}/user/settings"> |
||||||
|
{{.i18n.Tr "settings.profile"}} |
||||||
|
</a> |
||||||
|
<a class="{{if .PageIsSettingsPassword}}active{{end}} item" href="{{AppSubUrl}}/user/settings/password"> |
||||||
|
{{.i18n.Tr "settings.password"}} |
||||||
|
</a> |
||||||
|
<a class="{{if .PageIsSettingsEmails}}active{{end}} item" href="{{AppSubUrl}}/user/settings/email"> |
||||||
|
{{.i18n.Tr "settings.emails"}} |
||||||
|
</a> |
||||||
|
<a class="{{if .PageIsSettingsSSHKeys}}active{{end}} item" href="{{AppSubUrl}}/user/settings/ssh"> |
||||||
|
{{.i18n.Tr "settings.ssh_keys"}} |
||||||
|
</a> |
||||||
|
{{if .HasOAuthService}} |
||||||
|
<a class="{{if .PageIsSettingsSocial}}active{{end}} item" href="{{AppSubUrl}}/user/settings/social"> |
||||||
|
{{.i18n.Tr "settings.social"}} |
||||||
|
</a> |
||||||
|
{{end}} |
||||||
|
<a class="{{if .PageIsSettingsApplications}}active{{end}} item" href="{{AppSubUrl}}/user/settings/applications"> |
||||||
|
{{.i18n.Tr "settings.applications"}} |
||||||
|
</a> |
||||||
|
<a class="{{if .PageIsSettingsDelete}}active{{end}} item" href="{{AppSubUrl}}/user/settings/delete"> |
||||||
|
{{.i18n.Tr "settings.delete"}} |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
</div> |
Loading…
Reference in new issue