fichier qui prend en charge la saisie radio+entree libre
authorCerdic <cedric@yterium.com>
Wed, 11 Dec 2013 08:08:43 +0000 (09:08 +0100)
committerCerdic <cedric@yterium.com>
Wed, 11 Dec 2013 08:08:43 +0000 (09:08 +0100)
formulaires/inc-souscription-radioinput.html [new file with mode: 0644]

diff --git a/formulaires/inc-souscription-radioinput.html b/formulaires/inc-souscription-radioinput.html
new file mode 100644 (file)
index 0000000..d2a4555
--- /dev/null
@@ -0,0 +1,19 @@
+#CACHE{0}
+<BOUCLE_p(POUR){tableau #ENV{montants}}>
+       #SET{val,#CLE}
+       <div class="choix">
+               <input type="radio" name="#ENV{name}" class="radio" id="#ENV{name}_#GET{val}" value="#GET{val}"[(#ENV{valeur}|=={#GET{val}}|oui)checked="checked"] />
+               <label for="#ENV{name}_#GET{val}">#VALEUR</label>
+       </div>
+</BOUCLE_p>
+#SET{val,libre}
+<div class="choix libre">
+       <input type="radio" name="#ENV{name}" class="radio" id="#ENV{name}_#GET{val}" value="#GET{val}"[(#ENV{valeur}|=={#GET{val}}|oui)checked="checked"] />
+       <label for="#ENV{name}_#GET{val}"><:souscription:label_montant_libre:></label><input
+         type="text"
+         name="#ENV{name}_libre"
+         class="text"
+         value="#ENV*{#ENV{name}_libre}"
+         id="#ENV{name}_libre_input"
+         onfocus="jQuery(this).siblings('input.radio').trigger('click');" />
+</div>
\ No newline at end of file