gitroast/templates/user/delete.tmpl

34 lines
1.6 KiB
Cheetah
Raw Normal View History

2014-02-20 02:45:43 +00:00
{{template "base/head" .}}
{{template "base/navbar" .}}
2014-03-11 03:41:38 +00:00
<div id="gogs-body" class="container">
<div id="gogs-user-setting-nav" class="col-md-3">
<h4>Account Setting</h4>
<ul class="list-group">
<li class="list-group-item"><a href="/user/setting">Account Profile</a></li>
2014-03-14 03:24:08 +00:00
<li class="list-group-item"><a href="/user/setting/email_password">Emails and Password</a></li>
<li class="list-group-item"><a href="/user/setting/notification">Notifications</a></li>
2014-03-11 03:41:38 +00:00
<li class="list-group-item"><a href="/user/setting/ssh/">SSH Keys</a></li>
2014-03-14 03:24:08 +00:00
<li class="list-group-item"><a href="/user/setting/security">Security</a></li>
2014-03-11 03:41:38 +00:00
<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>
2014-03-11 15:40:47 +00:00
<p class="alert alert-danger">{{if not .HasError}}The operation will delete your account permanently. Sorry to see you go, but we know you'll back soon.{{else}}{{.ErrorMsg}}{{end}}</p>
2014-03-11 03:41:38 +00:00
<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>
2014-03-11 03:43:25 +00:00
<script>
$(function(){
$('#gogs-user-delete').on('submit',function(){
return confirm("Are you sure ?");
})
});
</script>
2014-02-20 02:45:43 +00:00
{{template "base/footer" .}}