1 | <div class="formulaire_spip formulaire_editer formulaire_#ENV{form}[ formulaire_#ENV{form}-(#ENV{id,nouveau})]"> |
---|
2 | [<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>] |
---|
3 | [<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>] |
---|
4 | |
---|
5 | [(#ENV{editable}|oui) |
---|
6 | <form method="post" action="#ENV{action}" enctype="multipart/form-data"><div> |
---|
7 | [(#REM) declarer les hidden qui declencheront le service du formulaire |
---|
8 | parametre : url d'action ] |
---|
9 | #ACTION_FORMULAIRE{#ENV{action}} |
---|
10 | |
---|
11 | <[(#VAL{ul}|saisie_balise_structure_formulaire)] class="editer-groupe"> |
---|
12 | #GENERER_SAISIES{#ENV{_configurer_traitements}} |
---|
13 | </[(#VAL{ul}|saisie_balise_structure_formulaire)]> |
---|
14 | |
---|
15 | [(#REM) ajouter les saisies supplementaires : extra et autre, a cet endroit ] |
---|
16 | <!--extra--> |
---|
17 | |
---|
18 | <p class="boutons"><span class="image_loading"></span><input type="submit" class="submit" value="<:bouton_enregistrer:>" /></p> |
---|
19 | </div></form> |
---|
20 | <script type="text/javascript"> |
---|
21 | jQuery(function(){ |
---|
22 | // On commence par cacher toutes les options |
---|
23 | jQuery('.options_traiter,.suite').hide() |
---|
24 | .each(function(){ |
---|
25 | var me = this; |
---|
26 | var check = jQuery(me).prev().find('input.checkbox'); |
---|
27 | check.bind('change',function(){ |
---|
28 | if (check.is(':checked')){ |
---|
29 | jQuery(me).show('fast'); |
---|
30 | check.closest('.editer').addClass('hover'); |
---|
31 | } |
---|
32 | else { |
---|
33 | jQuery(me).hide('fast'); |
---|
34 | check.closest('.editer').removeClass('hover'); |
---|
35 | } |
---|
36 | }) |
---|
37 | // force update |
---|
38 | .trigger('change'); |
---|
39 | }) |
---|
40 | .find('h3').hide(); |
---|
41 | }); |
---|
42 | </script> |
---|
43 | <style> |
---|
44 | .options_traiter {margin-left: 50px;border-bottom: 1px solid #ddd;} |
---|
45 | .suite {margin-left: 50px;} |
---|
46 | input.checkbox+label {font-weight: normal;} |
---|
47 | input.checkbox+label strong {font-weight: normal;} |
---|
48 | input.checkbox:checked+label {font-weight: bold;} |
---|
49 | input.checkbox:checked+label strong {font-weight: bold;} |
---|
50 | input.radio+label {font-weight: normal;} |
---|
51 | input.radio+label strong {font-weight: normal;} |
---|
52 | input.radio:checked+label {font-weight: bold;} |
---|
53 | input.radio:checked+label strong {font-weight: bold;} |
---|
54 | </style> |
---|
55 | ] |
---|
56 | </div> |
---|