array('courriel',
'recu_fiscal',
'envoyer_info',
+ 'informer_comite_local',
'prenom',
'nom',
'adresse',
"ville" => "text NOT NULL DEFAULT ''",
"recu_fiscal" => "varchar(3) NOT NULL DEFAULT ''",
"type_souscription" => "varchar(255) NOT NULL DEFAULT ''",
+ "informer_comite_local" => "varchar(3) NOT NULL DEFAULT ''",
"envoyer_info" => "varchar(3) NOT NULL DEFAULT ''",
"date_souscription " => "datetime NOT NULL DEFAULT '0000-00-00 00:00:00'",
"maj" => "TIMESTAMP"
[(#SAISIE{input, montant, obligatoire=oui, label=<:souscription:label_montant:>})]
[(#SAISIE{oui_non, recu_fiscal, label=<:souscription:label_recu_fiscal:>})]
[(#SAISIE{oui_non, envoyer_info, label=<:souscription:label_envoyer_info:> })]
+ [(#ENV{type_souscription}|=={adhesion}|oui) [(#SAISIE{oui_non, informer_comite_local, label=<:souscription:label_informer_comite_local:> })]]
[(#SAISIE{hidden, id_souscription_campagne})]
[(#SAISIE{hidden, type_souscription})]
</ul>
'courriel' => '',
'recu_fiscal' => $recu_fiscal,
'envoyer_info' => 'on',
+ 'informer_comite_local' => 'on',
'prenom' => '',
'nom' => '',
'adresse' => '',
'label_titre_campagne' => 'Titre de la campagne',
'label_exporter_payes' => 'Exporter les dons payés',
'label_exporter_tous' => 'Exporter tous les dons',
+ 'label_informer_comite_local' => "Informer le comité local le plus proche",
// R
'retirer_lien_souscription' => 'Retirer ce don',
compatibilite="[3.0.5;3.0.*]"
logo=""
documentation=""
- schema="0.0.3"
+ schema="0.1"
>
<nom>Souscription</nom>
<span dir="#LANG_DIR" class="#EDIT{envoyer_info} envoyer_info">(#ENVOYER_INFO|?{"oui","non"})</span>
</div>]
+[<div class="champ contenu_informer_comite_local">
+ <label><:souscription:label_informer_comite_local:> : </label>
+ <span dir="#LANG_DIR" class="#EDIT{informer_comite_local} informer_comite_local">(#INFORMER_COMITE_LOCAL|?{"oui","non"})</span>
+</div>]
+
</div>
</BOUCLE_souscription>
array('spip_souscriptions',
'spip_souscription_campagnes',
)));
+ $maj['0.1'] = array(array('sql_alter', "TABLE spip_souscriptions ADD informer_comite_local varchar(3) NOT NULL DEFAULT ''"));
include_spip('base/upgrade');
maj_plugin($nom_meta_base_version, $version_cible, $maj);