{{#restrict section="users" level="admin" block=true}}{{/restrict}} {{:admin_header title="Nouveau scrutin"}} {{if $_GET.id}} {{#load assign="scrutin" id=$_GET.id|intval}}{{/load}} {{/if}} {{if $_POST.save}} {{:save id=$scrutin.id validate_schema="./scrutin.schema.json" name=$_POST.name|strval|trim desc=$_POST.desc|strval|or:null activity_see=$_POST.activity_see|intval|or:null question=$_POST.question|strval|trim votes=$_POST.votes }} {{:redirect to="./"}} {{/if}}
{{:admin_footer}}