projects
/
spip_souscriptions.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d04e804
)
Ajout d'un champ facultatif 'Telephone' dans le formulaire de souscription
author
Olivier Tétard
<olivier.tetard@miskin.fr>
Tue, 23 Apr 2013 18:31:59 +0000
(20:31 +0200)
committer
Olivier Tétard
<olivier.tetard@miskin.fr>
Tue, 23 Apr 2013 18:31:59 +0000
(20:31 +0200)
action/editer_souscription.php
patch
|
blob
|
history
action/exporter_souscriptions.php
patch
|
blob
|
history
base/souscription.php
patch
|
blob
|
history
formulaires/souscription.html
patch
|
blob
|
history
formulaires/souscription.php
patch
|
blob
|
history
lang/souscription_fr.php
patch
|
blob
|
history
paquet.xml
patch
|
blob
|
history
prive/objets/contenu/souscription.html
patch
|
blob
|
history
souscription_administrations.php
patch
|
blob
|
history
diff --git
a/action/editer_souscription.php
b/action/editer_souscription.php
index
ef80f1c
..
25edf89
100644
(file)
--- a/
action/editer_souscription.php
+++ b/
action/editer_souscription.php
@@
-69,6
+69,7
@@
function souscription_modifier($id_souscription, $set=false) {
'adresse',
'code_postal',
'ville',
'adresse',
'code_postal',
'ville',
+ 'telephone',
'id_souscription_campagne',
'type_souscription'),
// black list
'id_souscription_campagne',
'type_souscription'),
// black list
diff --git
a/action/exporter_souscriptions.php
b/action/exporter_souscriptions.php
index
5f4eca4
..
12fdf35
100644
(file)
--- a/
action/exporter_souscriptions.php
+++ b/
action/exporter_souscriptions.php
@@
-33,7
+33,7
@@
function action_exporter_souscriptions_dist($arg=null) {
/* Préparation de la requête */
$select = "id_souscription, courriel, type_souscription,"
."montant, reglee, spip_transactions.statut, date_paiement, mode, autorisation_id,"
/* Préparation de la requête */
$select = "id_souscription, courriel, type_souscription,"
."montant, reglee, spip_transactions.statut, date_paiement, mode, autorisation_id,"
- ."nom, prenom, adresse, code_postal, ville, pays, recu_fiscal, envoyer_info, date_souscription,"
+ ."nom, prenom, adresse, code_postal, ville, pays,
telephone,
recu_fiscal, envoyer_info, date_souscription,"
."spip_souscription_campagnes.id_souscription_campagne, titre";
$from = "spip_souscriptions LEFT JOIN spip_transactions USING(id_transaction) LEFT JOIN spip_souscription_campagnes USING(id_souscription_campagne)";
."spip_souscription_campagnes.id_souscription_campagne, titre";
$from = "spip_souscriptions LEFT JOIN spip_transactions USING(id_transaction) LEFT JOIN spip_souscription_campagnes USING(id_souscription_campagne)";
@@
-73,6
+73,7
@@
function action_exporter_souscriptions_dist($arg=null) {
"Code Postal",
"Ville",
"Pays",
"Code Postal",
"Ville",
"Pays",
+ "Téléphone",
"Souhaite reçu fiscal",
"Souhaite être informé",
"Date don",
"Souhaite reçu fiscal",
"Souhaite être informé",
"Date don",
diff --git
a/base/souscription.php
b/base/souscription.php
index
85069dd
..
d4fd629
100644
(file)
--- a/
base/souscription.php
+++ b/
base/souscription.php
@@
-54,6
+54,7
@@
function souscription_declarer_tables_objets_sql($tables) {
"adresse" => "text NOT NULL DEFAULT ''",
"ville" => "text NOT NULL DEFAULT ''",
"pays" => "text NOT NULL DEFAULT ''",
"adresse" => "text NOT NULL DEFAULT ''",
"ville" => "text NOT NULL DEFAULT ''",
"pays" => "text NOT NULL DEFAULT ''",
+ "telephone" => "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 ''",
"recu_fiscal" => "varchar(3) NOT NULL DEFAULT ''",
"type_souscription" => "varchar(255) NOT NULL DEFAULT ''",
"informer_comite_local" => "varchar(3) NOT NULL DEFAULT ''",
diff --git
a/formulaires/souscription.html
b/formulaires/souscription.html
index
b5e4db0
..
601de27
100644
(file)
--- a/
formulaires/souscription.html
+++ b/
formulaires/souscription.html
@@
-36,6
+36,7
@@
[(#SAISIE{input, code_postal, label=<:souscription:label_code_postal:>})]
[(#SAISIE{input, ville, label=<:souscription:label_ville:>})]
[(#SAISIE{selection, pays, label=<:souscription:label_pays:>, datas=#GET{liste_pays}})]
[(#SAISIE{input, code_postal, label=<:souscription:label_code_postal:>})]
[(#SAISIE{input, ville, label=<:souscription:label_ville:>})]
[(#SAISIE{selection, pays, label=<:souscription:label_pays:>, datas=#GET{liste_pays}})]
+ [(#SAISIE{input, telephone, label=<:souscription:label_telephone:>})]
</ul>
</fieldset>
<p class="boutons"><input type="submit" class="submit" value="<:souscription:confirmer:>" /></p>
</ul>
</fieldset>
<p class="boutons"><input type="submit" class="submit" value="<:souscription:confirmer:>" /></p>
diff --git
a/formulaires/souscription.php
b/formulaires/souscription.php
index
2ee47c6
..
b3e34f0
100644
(file)
--- a/
formulaires/souscription.php
+++ b/
formulaires/souscription.php
@@
-89,6
+89,7
@@
function formulaires_souscription_charger_dist($id_souscription_campagne) {
'code_postal' => '',
'ville' => '',
'pays' => 'FR',
'code_postal' => '',
'ville' => '',
'pays' => 'FR',
+ 'telephone' => '',
'id_souscription_campagne' => $id_souscription_campagne,
'type_souscription' => $type,
);
'id_souscription_campagne' => $id_souscription_campagne,
'type_souscription' => $type,
);
diff --git
a/lang/souscription_fr.php
b/lang/souscription_fr.php
index
8e3ce94
..
f1e8c00
100644
(file)
--- a/
lang/souscription_fr.php
+++ b/
lang/souscription_fr.php
@@
-55,6
+55,7
@@
$GLOBALS[$GLOBALS['idx_lang']] = array(
'label_recu_fiscal' => 'Recevoir un reçu fiscal',
'label_ville' => 'Ville',
'label_pays' => 'Pays',
'label_recu_fiscal' => 'Recevoir un reçu fiscal',
'label_ville' => 'Ville',
'label_pays' => 'Pays',
+ 'label_telephone' => 'Téléphone',
'label_campagne' => 'Campagne',
'label_titre_campagne' => 'Titre de la campagne',
'label_exporter_payes' => 'Exporter les souscriptions payés',
'label_campagne' => 'Campagne',
'label_titre_campagne' => 'Titre de la campagne',
'label_exporter_payes' => 'Exporter les souscriptions payés',
diff --git
a/paquet.xml
b/paquet.xml
index
64ac3ee
..
b836ebf
100644
(file)
--- a/
paquet.xml
+++ b/
paquet.xml
@@
-6,7
+6,7
@@
compatibilite="[3.0.5;3.0.*]"
logo=""
documentation=""
compatibilite="[3.0.5;3.0.*]"
logo=""
documentation=""
- schema="0.
2
"
+ schema="0.
3
"
>
<nom>Souscription</nom>
>
<nom>Souscription</nom>
diff --git
a/prive/objets/contenu/souscription.html
b/prive/objets/contenu/souscription.html
index
7706a5e
..
2db9bd0
100644
(file)
--- a/
prive/objets/contenu/souscription.html
+++ b/
prive/objets/contenu/souscription.html
@@
-62,6
+62,11
@@
<span dir="#LANG_DIR" class="#EDIT{pays} pays">(#PAYS)</span>
</div>]
<span dir="#LANG_DIR" class="#EDIT{pays} pays">(#PAYS)</span>
</div>]
+[<div class="champ contenu_telephone[ (#TELEPHONE*|strlen|?{'',vide})]">
+ <label><:souscription:label_telephone:> : </label>
+ <span dir="#LANG_DIR" class="#EDIT{telephone} telephone">(#TELEPHONE)</span>
+</div>]
+
[<div class="champ contenu_recu_fiscal">
<label><:souscription:label_recu_fiscal:> : </label>
<span dir="#LANG_DIR" class="#EDIT{recu_fiscal} recu_fiscal">(#RECU_FISCAL|?{"oui","non"})</span>
[<div class="champ contenu_recu_fiscal">
<label><:souscription:label_recu_fiscal:> : </label>
<span dir="#LANG_DIR" class="#EDIT{recu_fiscal} recu_fiscal">(#RECU_FISCAL|?{"oui","non"})</span>
diff --git
a/souscription_administrations.php
b/souscription_administrations.php
index
4645590
..
70c5343
100644
(file)
--- a/
souscription_administrations.php
+++ b/
souscription_administrations.php
@@
-32,6
+32,8
@@
function souscription_upgrade($nom_meta_base_version, $version_cible) {
$maj['0.2'] = array(array('sql_alter', "TABLE spip_souscriptions ADD pays text NOT NULL DEFAULT ''"));
$maj['0.2'] = array(array('sql_alter', "TABLE spip_souscriptions ADD pays text NOT NULL DEFAULT ''"));
+ $maj['0.3'] = array(array('sql_alter', "TABLE spip_souscriptions ADD telephone text NOT NULL DEFAULT ''"));
+
include_spip('base/upgrade');
maj_plugin($nom_meta_base_version, $version_cible, $maj);
}
include_spip('base/upgrade');
maj_plugin($nom_meta_base_version, $version_cible, $maj);
}