Améliorations diverses : plusieurs calendriers avec mode d'accès (catégorie) et couleurs
This commit is contained in:
1 parent
76df5b8ad5
commit
efa2b448ff
14 files changed
+509
-858
No files matched your search
@@ -0,0 +1,23 @@
|
||||
{{* ---------- 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}}
|
||||
Reference in new issue
Block a user