From d03fdf679a9fd0c96bb2373a3ecd0c995db91836 Mon Sep 17 00:00:00 2001 From: Cerdic Date: Mon, 9 Dec 2013 17:15:51 +0100 Subject: [PATCH] l'inscription a la newsletter et l'information du comite local le plus proche sont des besoins optionnels : il faut les activer dans la configuration pour qu'ils apparaissent sur les formulaires de souscroption --- formulaires/configurer_souscription.html | 24 +++++++++++++++++++ formulaires/souscription.html | 30 ++++++++++++++---------- lang/souscription_fr.php | 2 ++ 3 files changed, 43 insertions(+), 13 deletions(-) diff --git a/formulaires/configurer_souscription.html b/formulaires/configurer_souscription.html index 1c2010d..8ff2b97 100644 --- a/formulaires/configurer_souscription.html +++ b/formulaires/configurer_souscription.html @@ -65,6 +65,18 @@ ] + #SET{name,proposer_informer_comite_local}#SET{obli,''}#SET{defaut,''}#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}} +
  • [ + (#GET{erreurs}) + ] + #SET{val,off} + + #SET{val,on} +
    + + +
    +
  • @@ -135,6 +147,18 @@ ] + #SET{name,proposer_infolettre}#SET{obli,''}#SET{defaut,''}#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}} +
  • [ + (#GET{erreurs}) + ] + #SET{val,off} + + #SET{val,on} +
    + + +
    +
  • diff --git a/formulaires/souscription.html b/formulaires/souscription.html index b238b7d..b868b74 100644 --- a/formulaires/souscription.html +++ b/formulaires/souscription.html @@ -94,22 +94,26 @@ + [(#CONFIG{souscription/proposer_infolettre,off}|=={on}|oui) #SET{name,envoyer_info}#SET{obli,''}#SET{defaut,'non'}#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
  • [ - (#GET{erreurs}) - ] - #SET{val,off} - - #SET{val,on} -
    - - -
    -
  • + (#GET{erreurs}) + ] + #SET{val,off} + + #SET{val,on} +
    + + +
    + + ] - [(#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:> })] + ] + ]

    diff --git a/lang/souscription_fr.php b/lang/souscription_fr.php index d4d99eb..bea4d72 100644 --- a/lang/souscription_fr.php +++ b/lang/souscription_fr.php @@ -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', -- 2.30.2