aboutsummaryrefslogtreecommitdiff
path: root/templates/user/delete.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/user/delete.tmpl')
-rw-r--r--templates/user/delete.tmpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/user/delete.tmpl b/templates/user/delete.tmpl
index 17c9ea89..39949ee2 100644
--- a/templates/user/delete.tmpl
+++ b/templates/user/delete.tmpl
@@ -12,13 +12,16 @@
<li class="list-group-item list-group-item-success"><a href="/user/delete">Delete Account</a></li>
</ul>
</div>
+
<div id="user-setting-container" class="col-md-9">
<h4>Delete Account</h4>
- <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>
+ {{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}}
<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 class="modal fade" id="delete-account-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<form action="/user/delete" method="post" class="modal-content" id="user-delete">