source: spip-zone/_plugins_/forms/forms_et_tables_2_5/formulaires/forms_champ_select.html @ 65965

Last change on this file since 65965 was 65965, checked in by sblanc@…, 9 years ago
File size: 1.1 KB
Line 
1<BOUCLE_f(FORMS){id_form}>
2<BOUCLE_champs(FORMS_CHAMPS){id_form}{tout}{champ}>
3<B_choix>
4[(#EXTRA_INFO|=={liste}|?{' ',''})
5<select name='#ENV{name,#CHAMP}' id='input-#ID_FORM-#CHAMP' 
6        class='[(#ENV{crayon_active,''}) ][(#OBLIGATOIRE|=={oui}|?{fondl,fondo})]'>
7        <option value=''>#ENV{titre_select,''}</option>]
8[(#EXTRA_INFO|=={liste}|?{'',' '})<ul class='spip_form_choix_unique[ (#ENV{crayon_active,''})]'>]
9        <BOUCLE_choix(FORMS_CHAMPS_CHOIX){id_form}{champ}{par rang}>
10[(#EXTRA_INFO|=={liste}|?{' ',''})
11        <option value='#CHOIX' [(#CHOIX|=={[(#ENV**{valeur}|forms_valeur{#CHAMP})]}|?{'selected="selected"',''})]>
12                &nbsp;&nbsp;&nbsp;[(#TITRE|supprimer_numero)]
13        </option>
14]
15[(#EXTRA_INFO|=={liste}|?{'',' '})<li>
16        &nbsp; <input type='radio' name='#ENV{name,#CHAMP}' value='#CHOIX' id='input-#ID_FORM-#CHOIX'
17        [(#CHOIX|=={[(#ENV**{valeur}|forms_valeur{#CHAMP})]}|?{'checked="checked"',''})] />
18        <label for='input-#ID_FORM-#CHOIX'>[(#TITRE|supprimer_numero)]</label>
19        </li>]
20        </BOUCLE_choix>
21[(#EXTRA_INFO|=={liste}|?{'</select>','</ul>'})]
22</B_choix>
23</BOUCLE_champs>
24</BOUCLE_f>
Note: See TracBrowser for help on using the repository browser.