[(#REM) Édition des contenus d'une sélection Paramètres : **obligatoire - **id_selection : n° d'une sélection - editer_selection : 'oui' afficher les header/footer - editer_contenu : - n° d'un contenu à modifier - 'new' pour en créer un - 'non' pour cacher le formulaire - editer_contenu_logo : n° d'un contenu pour éditer son logo ] #SET{self,#ENV*{self,#SELF}} [(#BOITE_OUVRIR{ [(#ENV{editer_selection}|=={oui}|oui)

<:info_numero_abbreviation:>[(#ENV{id_selection})][(#ENV{vu}|=={oui}|oui)[(#CHEMIN_IMAGE{vu-16-10.png}|balise_img)]] - [(#INFO_TITRE{selection,#ENV{id_selection}}|sinon{<:ecrire:info_sans_titre:>})]

], selection simple[ (#ENV{id_selection_ajoutee}|=={#ID_SELECTION}|?{append})]} |inserer_attribut{id,selection#ID_SELECTION} )]
[(#CONFIG{activer_logos}|=={oui}|oui) #SET{editer_logo,#ENV{editer_contenu_logo}|=={#ID_SELECTIONS_CONTENU}} [] ]

[(#URL|lien_ou_expose{#TITRE,#URL|non})]

#DESCRIPTIF
[
(#CHAMP_SQL{css}|attribut_html)
]
[(#AUTORISER{modifier,selections_contenu,#ID_SELECTIONS_CONTENU}|oui) <:bouton_modifier:> ] [(#AUTORISER{supprimer,selections_contenu,#ID_SELECTIONS_CONTENU}|oui) [(#BOUTON_ACTION{<:lien_supprimer:>, #URL_ACTION_AUTEUR{supprimer_selections_contenu,#ID_SELECTIONS_CONTENU,#GET{self}}, btn_secondaire delete ajax})] ]
[(#ENV{editer_contenu,non}|=={non}|oui)
[(#AUTORISER{modifier,selections_contenu,#ID_SELECTIONS_CONTENU}|et{#TOTAL_BOUCLE|>{1}}|oui)
[(#BOUTON_ACTION{ [(#CHEMIN_IMAGE{rang_haut-16.png}|balise_img{<:selections_contenu:deplacer_avant:>})], #URL_ACTION_AUTEUR{deplacer_selections_contenu, #ID_SELECTIONS_CONTENU-haut, #GET{self}}, ajax btn_icone move move_up })] [(#BOUTON_ACTION{ [(#CHEMIN_IMAGE{rang_bas-16.png}|balise_img{<:selections_contenu:deplacer_apres:>})], #URL_ACTION_AUTEUR{deplacer_selections_contenu, #ID_SELECTIONS_CONTENU-bas, #GET{self}}, ajax btn_icone move move_down })]
]
]
[(#REM) Formulaires d'édition d'un contenu ] [(#ENV{editer_contenu}|=={#ID_SELECTIONS_CONTENU}|et{#AUTORISER{modifier,selections_contenu,#ID_SELECTIONS_CONTENU}})
#FORMULAIRE_EDITER_SELECTIONS_CONTENU{#ID_SELECTIONS_CONTENU}
] [(#REM) Formulaires d'édition du logo d'un contenu ] [(#ENV{editer_contenu_logo}|=={#ID_SELECTIONS_CONTENU}|et{#AUTORISER{modifier,selections_contenu,#ID_SELECTIONS_CONTENU}})
#FORMULAIRE_EDITER_LOGO{selections_contenu,#ID_SELECTIONS_CONTENU}
]
[(#REM) Formulaire d'ajout d'un contenu ] [(#ENV{editer_contenu}|=={new}|et{#ENV{id_selection}|=={#ID_SELECTION}}|et{#AUTORISER{creerselectionscontenudans,selection,#ENV{id_selection}}})
#FORMULAIRE_EDITER_SELECTIONS_CONTENU{new,#ID_SELECTION}
]
[(#REM) Footer / boutons d'actions ] #SET{objet_associer,#ENV{objet}|!={selection}|?{#ENV{objet}}} #SET{id_objet_associer,#GET{objet_associer}|?{#ENV{id_objet}}} [(#ENV{editer_contenu,non}|=={non}|ou{#ENV{editer_contenu,non}|=={new}|et{#ENV{id_selection_contenu}|!={#ID_SELECTION}}}) #BOITE_PIED{act groupe-btns} [(#SET{data,[(#VAL{ [(#ENV{exec}|=={selection}|non) [(#AUTORISER{supprimer,selection,#ID_SELECTION}|oui) [(#BOUTON_ACTION{<:selection:bouton_supprimer_selection:>,#URL_ACTION_AUTEUR{supprimer_selection,#ID_SELECTION,#GET{self}},ajax btn_secondaire})] ] ] [(#GET{objet_associer}|et{#GET{id_objet_associer}}|oui) [(#AUTORISER{dissocierselections,#GET{objet_associer},#GET{id_objet_associer}}|et{#ENV{vu}|=={non}}|oui) [(#BOUTON_ACTION{<:selection:bouton_enlever_selection:>,[(#URL_ACTION_AUTEUR{dissocier_selection,[(#ENV{id_objet})]-[(#ENV{objet})]-#ID_SELECTION--safe,#GET{self}})],ajax btn_secondaire})] ] ] [(#REM) [(#ENV{exec}|=={selection}|non) [(#AUTORISER{modifier,selection,#ID_SELECTION}|oui) <:selection:bouton_modifier_selection:> ] ] ] [(#REM) Bouton pour ajouter un contenu ] [(#AUTORISER{creerselectionscontenudans,selection,#ENV{id_selection}}|et{#ENV{editer_contenu}|non|ou{#ENV{editer_contenu}|=={new}|non}}|oui) [(#CHEMIN_IMAGE{add-16.png}|balise_img)] <:selections_contenu:texte_ajouter_selections_contenu:> ] })]})] [(#PIPELINE{afficher_actions_selection,#ARRAY{ args, #ARRAY{ id_selection,#ID_SELECTION, objet, #GET{objet_associer}, id_objet, #GET{id_objet_associer}, editer_contenu, #ENV{editer_contenu}, }, data, #GET{data} }})] ] #BOITE_FERMER