Premiere version publique
This commit is contained in:
1 parent
a25eb5aa1a
commit
8aed0ac517
16 files changed
+2021
No files matched your search
@@ -0,0 +1,45 @@
|
||||
{{* Création Nouveau Sondage *}}
|
||||
{{#form on="create_son"}}
|
||||
{{*:assign var="titre" value=$_POST.titre|strval|trim*}}
|
||||
{{*:assign var="description" value=$_POST.description|strval|trim*}}
|
||||
{{:save type="sondage"
|
||||
titre=$_POST.titre|strval|trim
|
||||
description=$_POST.description|strval|trim
|
||||
mode=$_POST.mode|strval|trim
|
||||
style=$_POST.style|strval|trim
|
||||
assign_new_id="nouveau_id"
|
||||
}}
|
||||
{{:redirect url="%s?nav=conf&conf=edit_son&id=%s"|args:$module.url:$nouveau_id}}
|
||||
{{else}}
|
||||
{{:form_errors}}
|
||||
{{/form}}
|
||||
|
||||
{{* Modification Sondage *}}
|
||||
{{#form on="save_son"}}
|
||||
{{*:assign var="titre" value=$_POST.titre|strval|trim*}}
|
||||
{{*:assign var="description" value=$_POST.description|strval|trim*}}
|
||||
{{:save type="sondage" id=$_POST.save_son|intval
|
||||
titre=$_POST.titre|strval|trim
|
||||
style=$_POST.style|strval|trim
|
||||
description=$_POST.description|strval|trim
|
||||
}}
|
||||
{{*:redirect url="sondage.html?id=%s"|args:$nouveau_id*}}
|
||||
{{else}}
|
||||
{{:form_errors}}
|
||||
{{/form}}
|
||||
|
||||
{{* ---------- Suppression du sondage (admin) ---------- *}}
|
||||
{{#form on="del_son"}}
|
||||
{{:delete id=$_POST.del_son|intval}}
|
||||
{{:redirect url="%s?nav=conf&conf=edit_son"|args:$module.url}}
|
||||
{{else}}
|
||||
{{:form_errors}}
|
||||
{{/form}}
|
||||
|
||||
{{* ---------- Modification de la description (admin) ---------- *}}
|
||||
{{#form on="maj_description"}}
|
||||
{{:save id=$_POST.maj_description description=$saisi_description}}
|
||||
{{*:redirect url="%s?nav=conf&conf=edit_son"|args:$module.url*}}
|
||||
{{else}}
|
||||
{{:form_errors}}
|
||||
{{/form}}
|
||||
Reference in new issue
Block a user