aboutsummaryrefslogtreecommitdiff
path: root/templates/user/delete.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-10 16:36:50 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-10 16:36:50 -0400
commit45462662e9bdb001f1cf3d4ca0e4d679757c7642 (patch)
treeeb5f3bfe24a423601ad27121c95427719cb16984 /templates/user/delete.tmpl
parent459223cf01d19a6956d370fad9ab41d3a32233d0 (diff)
Add flash
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">