forgejo-federation/templates/user/delete.tmpl

45 lines
2.1 KiB
Cheetah
Raw Normal View History

2014-02-20 08:15:43 +05:30
{{template "base/head" .}}
{{template "base/navbar" .}}
2014-03-25 16:14:37 +05:30
<div id="body" class="container" data-page="user">
2014-04-11 03:39:57 +05:30
{{template "user/setting_nav" .}}
2014-05-06 01:51:43 +05:30
<div id="repo-setting-container" class="col-md-10">
2014-04-11 02:06:50 +05:30
{{template "base/alert" .}}
2014-05-06 01:51:43 +05:30
<div class="panel panel-warning">
<div class="panel-heading">
Delete Account
</div>
<div class="panel-body">
{{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}}
<div class="form-group">
<button type="submit" class="btn btn-danger btn-lg" href="#delete-account-modal" id="delete-account" data-toggle="modal">Delete Account</button>
</div>
</div>
</div>
</div>
2014-04-11 02:06:50 +05:30
<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 16:14:37 +05:30
<form action="/user/delete" method="post" class="modal-content" id="user-delete">
2014-03-22 23:14:02 +05:30
{{.CsrfTokenHtml}}
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</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-11 09:11:38 +05:30
</div>
</form>
</div>
2014-03-11 09:11:38 +05:30
</div>
</div>
2014-02-20 08:15:43 +05:30
{{template "base/footer" .}}