Fix account and alias deletion and ask for validation

This commit is contained in:
Victor LABORIE 2018-09-25 18:23:04 +02:00
parent 39a3f7faec
commit 68029c93b5
3 changed files with 5 additions and 3 deletions

View File

@ -4,8 +4,9 @@
<h2>Liste des comptes :</h2><hr>
<form method="post" action="/?domain={{ domain }}&account=_all">
<form method="post" action="/?domain={{ domain }}&account=_all" onsubmit="return confirm('Voulez vous vraiment supprimer ce compte ?');">
<input type="hidden" name="delete" value="account"/>
<input type="hidden" name="domain" value="{{ domain }}"/>
<table class="table table-striped table-condensed">
<thead>
<tr>

View File

@ -4,8 +4,9 @@
<h2>Liste des alias/groupe de diffusion :</h2><hr>
<form method="post" action="?domain={{ domain }}&alias=_all">
<form method="post" action="?domain={{ domain }}&alias=_all" onsubmit="return confirm('Voulez vous vraiment supprimer cet alias ?');">
<input type="hidden" name="delete" value="alias"/>
<input type="hidden" name="domain" value="{{ domain }}"/>
<table class="table table-striped table-condensed">
<thead>
<tr>

View File

@ -7,7 +7,7 @@
{% include 'notif.html' %}
<h2>Liste des domaines administrables :</h2><hr>
<form method="post" action="/?domain=_all">
<form method="post" action="/?domain=_all" onsubmit="return confirm('Voulez vous vraiment supprimer ce domaine ?');">
<input type="hidden" name="delete" value="domain"/>
<table class="table table-striped table-condensed">
<thead>