Merge remote-tracking branch 'cedric/feature/choix_radio_et_libre'
[spip_souscriptions.git] / formulaires / inc-souscription-radioinput.html
1 #CACHE{0}
2 <BOUCLE_p(POUR){tableau #ENV{montants}}>
3         #SET{val,#CLE}
4         <div class="choix">
5                 <input type="radio" name="#ENV{name}" class="radio" id="#ENV{name}_#GET{val}" value="#GET{val}"[(#ENV{valeur}|=={#GET{val}}|oui)checked="checked"] />
6                 <label for="#ENV{name}_#GET{val}">#VALEUR</label>
7         </div>
8 </BOUCLE_p>
9 #SET{val,libre}
10 <div class="choix libre">
11         <input type="radio" name="#ENV{name}" class="radio" id="#ENV{name}_#GET{val}" value="#GET{val}"[(#ENV{valeur}|=={#GET{val}}|oui)checked="checked"] />
12         <label for="#ENV{name}_#GET{val}"><:souscription:label_montant_libre:></label><input
13           type="text"
14           name="#ENV{name}_libre"
15           class="text"
16           value="#ENV*{#ENV{name}_libre}"
17           id="#ENV{name}_libre_input"
18           onfocus="jQuery(this).siblings('input.radio').trigger('click');" />
19 </div>