You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
2.2 KiB

[(#REM)
Plugin SPIPr-Dane-Config
Squelette #FORMULAIRE_LAYER_PAGE
* formulaire de configuration du modele de page
* param string : bloc - nom de la page a configurer
(c) 2019 Dominique Lepaisant
Distribue sous licence GPL3
][(#SET{id_unique,#EVAL{'rand();'}})]
#SET{layer, #CONFIG{sdn/#ENV{compo}/layer}|?{#CONFIG{sdn/#ENV{compo}/layer}, #CONFIG{sdn/defaut/layer, content-aside_-extra}}}
<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
<form method="post" action="#ENV{action}" class="form[_(#GET{id_unique})]"><div>
#ACTION_FORMULAIRE{#ENV{action}}
<h3 class="legend"><:sdn:choisir_modele:></h3>
<div class="editer_layer">
<ul class="ul_#GET{id_unique}">
<BOUCLE_ls2(POUR){tableau #ENV{modeles}}>
<li style="width:30%;padding-left:5px;padding-bottom:10px;float:left;clear:[(#COMPTEUR_BOUCLE|=={4}|ou{#COMPTEUR_BOUCLE|=={7}}|?{both,none});]">
<div style="float:left;" class="divimg[ (#ENV{nbcols}|=={2_cols_gauche}|oui) active]">
<label for="#CLE" class="thumb" style="margin-left:0">
<img src="#CHEMIN{prive/themes/spip/images/layers-sdn/layer-#VALEUR.png}" title="[(#VAL{sdn:layer_#CLE}|_T)]" alt="[(#VAL{sdn:layer_#CLE}|_T)]" style="width:120px;margin-left:20px" /></label>
<p class="explication" style="clear:both;">
<input type="radio" name="layer" id="#CLE" value="#CLE" [ (#GET{layer}|=={#CLE}|oui)checked="checked" disabled="disabled"]/>
<label for="#CLE"><:sdn:modele_num{num=#VALEUR}:></label></p>
</div>
</li>
</BOUCLE_ls2>
</ul>
</div>
<p class="boutons">
<input type="submit" name="enregistrer" class="submit save" value="<:bouton_enregistrer:>" />
<input type="submit" name="_cfg_delete" class="submit delette" value="<:sdn:bouton_supprimer:>" style="float:left"/>
</p>
</div></form>
</div>