Skip to content

Commit

Permalink
Fixes #165 Add a confirmation dialog to the delete account step.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwi committed Feb 12, 2014
1 parent 7ae563b commit 8a0bdbe
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions views/account/profile.jade
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,20 @@ block content
h3 Delete Account

p You can delete your account, but keep in mind this action is irreversible.
form(action='/account/delete', method='POST')
button.btn.btn-danger(type='submit') Delete my account
button(class="btn btn-danger", data-toggle="modal", data-target="#deleteModal").
Delete my account

div.modal(id="deleteModal", role="dialog")
.modal-dialog
.modal-content
.modal-header
button(type="button", class="close", data-dismiss="modal") x
h3 Are you sure?
.modal-body
p You can delete your account, but keep in mind this action is irreversible.
form(action='/account/delete', method='POST')
button.btn.btn-danger(type='submit') I understand, delete my account
.modal-footer

.page-header
h3 Linked Accounts
Expand Down

0 comments on commit 8a0bdbe

Please sign in to comment.