add confirm before email deletion
This commit is contained in:
parent
26407664e7
commit
5d0d5532aa
@ -9,7 +9,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
<hr>
|
<hr>
|
||||||
<div>
|
<div>
|
||||||
<img src="/static/img/logo.png" alt="Logo" style="height: 50px;">
|
<img src="{{ url_for('static', filename='img/logo.png') }}" alt="Logo" style="height: 50px;">
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -36,7 +36,7 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<h3>Supprimer boîte mail</h3>
|
<h3>Supprimer boîte mail</h3>
|
||||||
<form method="post">
|
<form method="post" onsubmit="return confirmDeleteMailbox();">
|
||||||
{{ delete_form.hidden_tag() }}
|
{{ delete_form.hidden_tag() }}
|
||||||
{{ delete_form.email.label }} {{ delete_form.email }}<br>
|
{{ delete_form.email.label }} {{ delete_form.email }}<br>
|
||||||
{{ delete_form.submit }}
|
{{ delete_form.submit }}
|
||||||
@ -64,4 +64,10 @@
|
|||||||
<hr>
|
<hr>
|
||||||
<a href="{{ url_for('logout') }}">Logout</a>
|
<a href="{{ url_for('logout') }}">Logout</a>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function confirmDeleteMailbox() {
|
||||||
|
return confirm("Êtes-vous sûr de vouloir supprimer cette boîte mail ?");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Loading…
x
Reference in New Issue
Block a user