2014-02-19 21:45:43 -05:00
{{template "base/head" .}}
{{template "base/navbar" .}}
2014-03-25 05:44:37 -05:00
<div id="body" class="container" data-page="user">
<div id="user-setting-nav" class="col-md-3">
2014-03-10 22:41:38 -05:00
<h4>Account Setting</h4>
<ul class="list-group">
<li class="list-group-item"><a href="/user/setting">Account Profile</a></li>
2014-03-14 00:12:07 -05:00
<li class="list-group-item"><a href="/user/setting/password">Password</a></li>
2014-03-25 05:52:56 -05:00
<!-- <li class="list-group-item"><a href="/user/setting/notification">Notifications</a></li> -->
2014-03-10 22:41:38 -05:00
<li class="list-group-item"><a href="/user/setting/ssh/">SSH Keys</a></li>
2014-03-25 05:52:56 -05:00
<!-- <li class="list-group-item"><a href="/user/setting/security">Security</a></li> -->
2014-03-10 22:41:38 -05:00
<li class="list-group-item list-group-item-success"><a href="/user/delete">Delete Account</a></li>
</ul>
</div>
2014-04-10 15:36:50 -05:00
2014-03-25 05:44:37 -05:00
<div id="user-setting-container" class="col-md-9">
2014-03-16 08:07:50 -05:00
<h4>Delete Account</h4>
2014-04-10 15:36:50 -05:00
{{template "base/alert" .}}
{{if not .Flash.ErrorMsg}}<p class="alert alert-danger">The operation will delete your account permanently. Sorry to see you go, but we know you'll back soon.</p>{{end}}
2014-03-16 08:07:50 -05:00
<div class="form-group">
2014-03-25 05:44:37 -05:00
<button type="submit" class="btn btn-danger btn-lg" href=" #delete - account - modal " id= " delete - account " data-toggle= " modal " >Delete Account</button>
2014-03-16 08:07:50 -05:00
</div>
</div>
2014-04-10 15:36:50 -05:00
2014-03-16 08:07:50 -05:00
<div class="modal fade" id="delete-account-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
2014-03-25 05:44:37 -05:00
<form action="/user/delete" method="post" class="modal-content" id="user-delete">
2014-03-22 12:44:02 -05:00
{{.CsrfTokenHtml}}
2014-03-16 08:07:50 -05:00
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Delete Account</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label>Make sure your are owner of this account. Please enter your password.<strong class="text-danger">*</strong></label>
<input name="password" class="form-control" type="password" placeholder="Type your account password" required="required">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-danger">Delete</button>
2014-03-10 22:41:38 -05:00
</div>
2014-03-16 08:07:50 -05:00
</form>
</div>
2014-03-10 22:41:38 -05:00
</div>
</div>
2014-02-19 21:45:43 -05:00
{{template "base/footer" .}}