#ACTION_FORMULAIRE{#ENV{action}}
<ul>
- [(#SAISIE{#CONFIG{souscription/#ENV{type_souscription}|concat{_type_saisie},input},
+ [(#SAISIE{#ENV{montant_type},
montant,
obligatoire=oui,
- label=[(#CONFIG{souscription/#ENV{type_souscription}|concat{_montants_label},<:souscription:label_montant:>})],
- explication=[(#CONFIG{souscription/#ENV{type_souscription}|concat{_montants_description}}|nl2br)],
- datas=#CONFIG{souscription/#ENV{type_souscription}|concat{_montants}}})]
+ label=#ENV{montant_label},
+ explication=#ENV{montant_explication},
+ datas=#ENV{montant_datas}})]
[(#SAISIE{explication, dispositions_fiscales_explications, texte=#CONFIG{souscription/dispositions_fiscales_explications}|nl2br})]
[(#SAISIE{input, courriel, obligatoire=oui, label=<:souscription:label_courriel:>})]
[(#SAISIE{oui_non, recu_fiscal, label=<:souscription:label_recu_fiscal:>})]
if($type == "adhesion")
$recu_fiscal = "on";
+ $montant_type = lire_config("souscription/{$type}_type_saisie", 'input');
+ $montant_datas = lire_config("souscription/${type}_montants", array());
+ $montant_label = lire_config("souscription/${type}_montants_label", _T('souscription:label_montant'));
+ $montant_explication = nl2br(lire_config("souscription/${type}_montants_description"));
+
return array('montant' => '',
'courriel' => '',
'recu_fiscal' => $recu_fiscal,
'telephone' => '',
'id_souscription_campagne' => $id_souscription_campagne,
'type_souscription' => $type,
+ 'montant_datas' => $montant_datas,
+ 'montant_type' => $montant_type,
+ 'montant_label' => $montant_label,
+ 'montant_explication' => $montant_explication
);
}