Version brouillon qui marche à peu près
This commit is contained in:
17
delete.html
Normal file
17
delete.html
Normal 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}}
|
||||
Reference in New Issue
Block a user