Version brouillon qui marche à peu près

This commit is contained in:
Charlie Mathey
2024-05-22 14:25:30 +02:00
parent ad8fb596c9
commit e135d41338
9 changed files with 243 additions and 1 deletions

17
delete.html Normal file
View File

@ -0,0 +1,17 @@
{{#restrict section="accounting" level="write" block=true}}{{/restrict}}
{{#load assign="scrutin" id=$_GET.id|intval}}
{{else}}
{{:error message="Aucun modèle trouvé"}}
{{/load}}
{{#form on="delete"}}
{{:delete id=$scrutin.id}}
{{:redirect to="./"}}
{{/form}}
{{:admin_header title="Supprimer scrutin"}}
{{:delete_form legend="Supprimer un scrutin" warning="Supprimer le scrutin '%s' ?"|args:$scrutin.name}}
{{:admin_footer}}