Rev 12317 | Rev 12329 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12316 | bpr | 1 | !!!liste provisoire, juste pour essayer |
2 | |||
12327 | obado | 3 | !set list_attribut=V_Chpref,flask,flasks,qcm,molecule,browse,about,mail |
12316 | bpr | 4 | |
5 | <label for="mod_attribut">$name_attribut</label> |
||
6 | <select name="mod_attribut" id="mod_attribut"> |
||
12317 | bpr | 7 | !for i in none,$list_attribut |
12327 | obado | 8 | <option value="$i" |
12316 | bpr | 9 | !if $i=$attribut_ |
10 | selected="selected" |
||
11 | !endif |
||
12 | >$i</option> |
||
13 | !next |
||
14 | </select> |
||
12327 | obado | 15 | $ $ <i class="text_icon $attribut_" id="mod_icon_preview"> </i> |
12316 | bpr | 16 | !if $jquery_defined=yes |
17 | <script> |
||
18 | $$("#mod_attribut").change(function() { |
||
19 | document.getElementById("mod_icon_preview").className="text_icon "+$$("#mod_attribut>option:selected").val(); |
||
20 | }); |
||
21 | </script> |
||
22 | !endif |
||
23 | <div class="formHelp">$name_attribut_help</div> |