{{* ---------- Ajout d'une permanence récurrente ---------- *}} {{if $_POST.add_perm && $est_admin}} {{:assign var="lbl" value=$_POST.label|strval|trim}} {{if $lbl != ""}} {{:save type="permanence" jour=$_POST.jour|intval debut=$_POST.debut|strval|trim fin=$_POST.fin|strval|trim label=$lbl lieu=$_POST.lieu|strval|trim description=$_POST.description|strval|trim date_debut=$_POST.date_debut|strval|trim date_fin=$_POST.date_fin|strval|trim type_recurrence=$_POST.type_recurrence|strval|trim semaine_du_mois=$_POST.semaine_du_mois|intval couleur=$_POST.couleur|strval|trim calendrier=$_POST.calendrier|strval|trim}} {{:redirect url="index.html"}} {{/if}} {{/if}} {{* ---------- Modification d'une permanence ---------- *}} {{if $_POST.rename_perm && $est_admin}} {{:assign var="lbl" value=$_POST.label|strval|trim}} {{if $lbl != ""}} {{:save id=$_POST.rename_perm|intval type="permanence" jour=$_POST.jour|intval debut=$_POST.debut|strval|trim fin=$_POST.fin|strval|trim label=$lbl lieu=$_POST.lieu|strval|trim description=$_POST.description|strval|trim date_debut=$_POST.date_debut|strval|trim date_fin=$_POST.date_fin|strval|trim type_recurrence=$_POST.type_recurrence|strval|trim semaine_du_mois=$_POST.semaine_du_mois|intval couleur=$_POST.couleur|strval|trim calendrier=$_POST.calendrier|strval|trim}} {{:redirect url="index.html"}} {{/if}} {{/if}} {{* ---------- Suppression d'une permanence ---------- *}} {{if $_POST.suppr_perm && $est_admin}} {{:delete id=$_POST.suppr_perm|intval}} {{:redirect url="index.html"}} {{/if}}