Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Commit

Permalink
Fixes larvalabs#165 Add a confirmation dialog to the delete account s…
Browse files Browse the repository at this point in the history
…tep.
  • Loading branch information
ryanwi committed Feb 12, 2014
1 parent 7ae563b commit b2c0940
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 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 All @@ -87,3 +99,4 @@ block content
p: a.text-danger(href='/account/unlink/github') Unlink your GitHub account
else
p: a(href='/auth/github') Link your GitHub account

0 comments on commit b2c0940

Please sign in to comment.