Add some confirmation before delete user or revoke certificate

This commit is contained in:
Li Chen 2013-12-01 01:17:30 +01:00
parent 745d8a8bd5
commit 3f0a403fd4

View File

@ -19,10 +19,15 @@
<tr>
<td>
{$t->id}<br>
<a href="?delete={$t->id}"><span class="glyphicon glyphicon-trash"></span></a>
<a href="/{$SALT_ADMIN}/certificate/revoke?name={$t->team_name}"><span class="glyphicon glyphicon-remove"></span></a>
<a href="/{$SALT_ADMIN}/certificate/get?name={$t->team_name}"><span class="glyphicon glyphicon-download"></span></a>
<a href="/{$SALT_ADMIN}/certificate/newclient?name={$t->team_name}"><span class="glyphicon glyphicon-plus"></span></a>
<a href="?delete={$t->id}" onclick="return confirm('Êtes-vous sûr de vouloir supprimer cette équipe ?')">
<span class="glyphicon glyphicon-trash"></span></a>
<a href="/{$SALT_ADMIN}/certificate/revoke?name={$t->team_name}"
onclick="return confirm('Êtes-vous sûr de vouloir révoquer ce certificat ?')">
<span class="glyphicon glyphicon-remove"></span></a>
<a href="/{$SALT_ADMIN}/certificate/get?name={$t->team_name}">
<span class="glyphicon glyphicon-download"></span></a>
<a href="/{$SALT_ADMIN}/certificate/newclient?name={$t->team_name}">
<span class="glyphicon glyphicon-plus"></span></a>
</td>
<td>{$t->team_name}</td>
<td>{$t->slogan}</td>
@ -41,10 +46,13 @@
<tfoot>
<tr>
<td colspan="6">
<a class="btn btn-success" href="/{$SALT_ADMIN}/teams/import" role="button"><span class="glyphicon glyphicon-cloud-upload"></span> Importer</a>
<a class="btn btn-success" href="/{$SALT_ADMIN}/teams/import" role="button">
<span class="glyphicon glyphicon-cloud-upload"></span> Importer</a>
{if $teams}
<a class="btn btn-primary" href="/{$SALT_ADMIN}/teams/export" role="button"><span class="glyphicon glyphicon-floppy-save"></span> Exporter</a>
<a class="btn btn-danger" href="/{$SALT_ADMIN}/teams/?drop" onclick="return confirm('Êtes-vous sûr de vouloir vider la table des équipes ?')" role="button"><span class="glyphicon glyphicon-trash"></span> Vider</a>
<a class="btn btn-primary" href="/{$SALT_ADMIN}/teams/export" role="button">
<span class="glyphicon glyphicon-floppy-save"></span> Exporter</a>
<a class="btn btn-danger" href="/{$SALT_ADMIN}/teams/?drop" onclick="return confirm('Êtes-vous sûr de vouloir vider la table des équipes ?')" role="button">
<span class="glyphicon glyphicon-trash"></span> Vider</a>
{/if}
</td>
</tr>