Add confirm loop

For pages where
- we want you to be sure that you want to do what you’re about to do
- we want to be sure it’s you trying to do the thing

This adds a page that asks the user to confirm their password.
This commit is contained in:
Chris Hill-Scott
2016-01-08 14:59:30 +00:00
parent 3989d1b576
commit 0b62d1e755
12 changed files with 227 additions and 82 deletions
@@ -7,16 +7,37 @@
{% block maincolumn_content %}
<h1 class="heading-xlarge">Delete this service</h1>
<div class="grid-row">
<div class="column-three-quarters">
<h1 class="heading-xlarge">Delete service</h1>
<p>
All will be lost.
</p>
<p>
This cant be undone. You will lose:
</p>
<form method="post">
{{ submit_form('Delete', destructive=True) }}
</form>
<ul class="list list-bullet">
<li>
any data youve uploaded messages
</li>
<li>
any templates youve created
</li>
<li>
the history of
</li>
<li>
API keys
</li>
</ul>
<p><a href="{{ url_for('.service_settings') }}">Back to service settings</a></p>
<form method="post">
{{ submit_form(
'Yes, delete {}'.format(service.name),
destructive=True,
back_link=url_for('.service_settings')
) }}
</form>
</div>
</div>
{% endblock %}