mirror of https://github.com/go-gitea/gitea
commit
5b5d54621e
@ -1,12 +1,34 @@ |
|||||||
{{template "base/head" .}} |
{{template "base/head" .}} |
||||||
{{template "base/navbar" .}} |
{{template "base/navbar" .}} |
||||||
<div class="container" id="gogs-body"> |
<div id="gogs-body" class="container"> |
||||||
<form action="/user/delete" method="post" class="form-horizontal"> |
<div id="gogs-user-setting-nav" class="col-md-3"> |
||||||
<div class="form-group"> |
<h4>Account Setting</h4> |
||||||
<div class="col-md-offset-4 col-md-3"> |
<ul class="list-group"> |
||||||
<button type="submit" class="btn btn-danger">Delete user</button> |
<li class="list-group-item"><a href="/user/setting">Account Profile</a></li> |
||||||
</div> |
<li class="list-group-item"><a href="#">Emails and Password</a></li> |
||||||
</div> |
<li class="list-group-item"><a href="#">Notifications</a></li> |
||||||
</form> |
<li class="list-group-item"><a href="/user/setting/ssh/">SSH Keys</a></li> |
||||||
|
<li class="list-group-item"><a href="#">Security</a></li> |
||||||
|
<li class="list-group-item list-group-item-success"><a href="/user/delete">Delete Account</a></li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
<div id="gogs-user-setting-container" class="col-md-9"> |
||||||
|
<form action="/user/delete" method="post" class="form-horizontal" id="gogs-user-delete"> |
||||||
|
<h4>Delete Account</h4> |
||||||
|
<p class="alert alert-danger">Deleting your account is permanent. Sorry to see you go, if you have any feedback you can contact us.</p> |
||||||
|
<div class="form-group"> |
||||||
|
<div class="col-md-3"> |
||||||
|
<button type="submit" class="btn btn-danger btn-lg">Delete Account</button> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
|
<script> |
||||||
|
$(function(){ |
||||||
|
$('#gogs-user-delete').on('submit',function(){ |
||||||
|
return confirm("Are you sure ?"); |
||||||
|
}) |
||||||
|
}); |
||||||
|
</script> |
||||||
{{template "base/footer" .}} |
{{template "base/footer" .}} |
Loading…
Reference in new issue