l'inscription a la newsletter et l'information du comite local le plus proche sont...
authorCerdic <cedric@yterium.com>
Mon, 9 Dec 2013 16:15:51 +0000 (17:15 +0100)
committerCerdic <cedric@yterium.com>
Mon, 9 Dec 2013 16:15:51 +0000 (17:15 +0100)
formulaires/configurer_souscription.html
formulaires/souscription.html
lang/souscription_fr.php

index 1c2010d..8ff2b97 100644 (file)
                                                        ]<textarea name="#GET{name}" class="textarea" rows="4">
 #ENV*{#GET{name},#GET{defaut}}</textarea>
                                                </li>
+                                               #SET{name,proposer_informer_comite_local}#SET{obli,''}#SET{defaut,''}#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
+                                               <li class="editer pleine_largeur editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">[
+                                                       <span class='erreur_message'>(#GET{erreurs})</span>
+                                                       ]
+                                                       #SET{val,off}
+                                                       <input type="hidden" name="#GET{name}" value="#GET{val}" />
+                                                       #SET{val,on}
+                                                       <div class="choix">
+                                                               <input type="checkbox" name="#GET{name}" class="checkbox" id="#GET{name}_#GET{val}" value="#GET{val}"[(#ENV{#GET{name},#GET{defaut}}|=={#GET{val}}|oui)checked="checked"] />
+                                                               <label for="#GET{name}_#GET{val}"><:souscription:label_proposer_informer_comite_local:></label>
+                                                       </div>
+                                               </li>
                                        </ul>
                                </fieldset>
                        </li>
                                        ]<textarea name="#GET{name}" class="textarea" rows="4">
 #ENV*{#GET{name},#GET{defaut}}</textarea>
                                </li>
+                               #SET{name,proposer_infolettre}#SET{obli,''}#SET{defaut,''}#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
+                               <li class="editer pleine_largeur editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">[
+                                       <span class='erreur_message'>(#GET{erreurs})</span>
+                                       ]
+                                       #SET{val,off}
+                                       <input type="hidden" name="#GET{name}" value="#GET{val}" />
+                                       #SET{val,on}
+                                       <div class="choix">
+                                               <input type="checkbox" name="#GET{name}" class="checkbox" id="#GET{name}_#GET{val}" value="#GET{val}"[(#ENV{#GET{name},#GET{defaut}}|=={#GET{val}}|oui)checked="checked"] />
+                                               <label for="#GET{name}_#GET{val}"><:souscription:label_proposer_infolettre:></label>
+                                       </div>
+                               </li>
                        </ul>
                </fieldset>
 
index b238b7d..b868b74 100644 (file)
              </li>
 
 
+             [(#CONFIG{souscription/proposer_infolettre,off}|=={on}|oui)
              #SET{name,envoyer_info}#SET{obli,''}#SET{defaut,'non'}#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
              <li class="editer editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">[
-         <span class='erreur_message'>(#GET{erreurs})</span>
-         ]
-         #SET{val,off}
-         <input type="hidden" name="#GET{name}" value="#GET{val}" />
-         #SET{val,on}
-         <div class="choix">
-           <input type="checkbox" name="#GET{name}" class="checkbox" id="#GET{name}_#GET{val}" value="#GET{val}"[(#ENV{#GET{name},#GET{defaut}}|=={#GET{val}}|oui)checked="checked"] />
-           <label for="#GET{name}_#GET{val}"><:souscription:label_envoyer_info:></label>
-         </div>
-       </li>
+                                       <span class='erreur_message'>(#GET{erreurs})</span>
+                                       ]
+                                       #SET{val,off}
+                                       <input type="hidden" name="#GET{name}" value="#GET{val}" />
+                                       #SET{val,on}
+                                       <div class="choix">
+                                               <input type="checkbox" name="#GET{name}" class="checkbox" id="#GET{name}_#GET{val}" value="#GET{val}"[(#ENV{#GET{name},#GET{defaut}}|=={#GET{val}}|oui)checked="checked"] />
+                                               <label for="#GET{name}_#GET{val}"><:souscription:label_envoyer_info:></label>
+                                       </div>
+                               </li>
+                               ]
 
-       [(#ENV{type_souscription}|=={adhesion}|oui)
-              [(#SAISIE{oui_non, informer_comite_local, label=<:souscription:label_informer_comite_local:> })]
-            ]
+                               [(#ENV{type_souscription}|=={adhesion}|oui)
+                     [(#CONFIG{souscription/proposer_informer_comite_local,off}|=={on}|oui)
+                                               [(#SAISIE{oui_non, informer_comite_local, label=<:souscription:label_informer_comite_local:> })]
+                     ]
+                               ]
       </ul>
 
       <p class="boutons"><input type="submit" class="submit" value="<:souscription:confirmer:>" /></p>
index d4d99eb..bea4d72 100644 (file)
@@ -87,6 +87,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
        'label_exporter_type_souscription' => "Type de souscription",
        'label_id_transaction' => 'Identifiant de la transaction',
        'label_informer_comite_local' => 'Me faire connaître auprès du comité local le plus proche',
+       'label_proposer_informer_comite_local' => 'Proposer d\'informer le comité local lors de l\'adhésion',
        'label_montant' => 'Montant',
        'label_montant_actuel' => 'Niveau actuel de la campagne',
        'label_montant_liste' => 'Montant',
@@ -96,6 +97,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
        'label_nom' => 'Nom',
        'label_pays' => 'Pays',
        'label_prenom' => 'Prénom',
+       'label_proposer_infolettre' => 'Proposer l\'inscription à la lettre d\'information',
        'label_recu_fiscal' => 'Recevoir un reçu fiscal',
        'label_statut' => 'Statut',
        'label_telephone' => 'Téléphone',