From 3c435934fb9acb31ffae70e28241b59e4d1c9ac5 Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 11:38:57 +0100 Subject: [PATCH 01/14] Page maintenance --- app/view/campaign/home.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/view/campaign/home.html b/app/view/campaign/home.html index 9116230..724e15e 100644 --- a/app/view/campaign/home.html +++ b/app/view/campaign/home.html @@ -1,4 +1,6 @@ -
+

Désolé ! Le site de dons est en maintenance :( +Merci de votre soutien <3

+ -- GitLab From 1763c6f3023f1fcfa614e5879b71568b86c9819b Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 11:49:03 +0100 Subject: [PATCH 02/14] Page de maintenance --- app/view/campaign/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/view/campaign/home.html b/app/view/campaign/home.html index 724e15e..95d5409 100644 --- a/app/view/campaign/home.html +++ b/app/view/campaign/home.html @@ -1,4 +1,4 @@ -

Désolé ! Le site de dons est en maintenance :( +

Désolé !
Le site de dons est en maintenance :(
Merci de votre soutien <3

+ -- GitLab From 5cf7065c67c87a4d9e202e1cd11ed570e312b7b9 Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:06:08 +0100 Subject: [PATCH 06/14] retrait de la taille du t-shirt non reconnue --- app/view/user/perso.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/view/user/perso.html b/app/view/user/perso.html index 942053f..f66d2d6 100644 --- a/app/view/user/perso.html +++ b/app/view/user/perso.html @@ -444,7 +444,7 @@
- {{ _("Un hoopie - Taille : @atailles[@taille_h], un pi-shirt - Taille : @atailles[@taille], un pibag et piplôme") }} + {{ _("Un hoopie - Taille : @atailles[@taille_h], un pi-shirt, un pibag et piplôme") }}
-- GitLab From 736e2eaa769e947e28ebf2600ae66165a111af5a Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:08:18 +0100 Subject: [PATCH 07/14] Retrait de toutes les tailles --- app/view/user/perso.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/view/user/perso.html b/app/view/user/perso.html index f66d2d6..2e62426 100644 --- a/app/view/user/perso.html +++ b/app/view/user/perso.html @@ -434,7 +434,7 @@
- {{ _("Un pi-shirt - Taille : @atailles[@taille], un pibag et piplôme") }} + {{ _("Un pi-shirt, un pibag et piplôme") }}
@@ -444,7 +444,7 @@
- {{ _("Un hoopie - Taille : @atailles[@taille_h], un pi-shirt, un pibag et piplôme") }} + {{ _("Un hoopie, un pi-shirt, un pibag et piplôme") }}
-- GitLab From b61151cea27ac14cfc7c419f707bedceb96a74a0 Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:13:43 +0100 Subject: [PATCH 08/14] Update perso.html --- app/view/user/perso.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/view/user/perso.html b/app/view/user/perso.html index 2e62426..633aad4 100644 --- a/app/view/user/perso.html +++ b/app/view/user/perso.html @@ -424,7 +424,7 @@
- {{ _("Un pibag et un piplôme") }} + {{ _("Un pibag") }}
@@ -434,7 +434,7 @@
- {{ _("Un pi-shirt, un pibag et piplôme") }} + {{ _("Un pi-shirt - Taille : @atailles[@taille]") }}
@@ -444,7 +444,7 @@
- {{ _("Un hoopie, un pi-shirt, un pibag et piplôme") }} + {{ _("Un hoopie - Taille : @atailles[@taille_h]") }}
-- GitLab From 7197df45b669991ba348b85ba9ae505465293d3a Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:16:14 +0100 Subject: [PATCH 09/14] Update perso.html --- app/view/user/perso.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/view/user/perso.html b/app/view/user/perso.html index 633aad4..ded2e59 100644 --- a/app/view/user/perso.html +++ b/app/view/user/perso.html @@ -434,7 +434,7 @@
- {{ _("Un pi-shirt - Taille : @atailles[@taille]") }} + {{ _("Un pi-shirt") }}
@@ -444,7 +444,7 @@
- {{ _("Un hoopie - Taille : @atailles[@taille_h]") }} + {{ _("Un hoopie") }}
-- GitLab From 1abfb1e9023951aba63fa4a1bcb8af13583d9658 Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:33:32 +0100 Subject: [PATCH 10/14] Message ajouter une adresse --- app/view/user/perso.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/view/user/perso.html b/app/view/user/perso.html index ded2e59..b5b1ee5 100644 --- a/app/view/user/perso.html +++ b/app/view/user/perso.html @@ -370,6 +370,9 @@ + +

Veuillez ajouter une adresse postale ici

+
-- GitLab From 6dbc6df7425bec7e025a43aa36e65924b1e30716 Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:36:57 +0100 Subject: [PATCH 11/14] Test sans adresses --- app/view/user/perso.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/view/user/perso.html b/app/view/user/perso.html index b5b1ee5..cb98402 100644 --- a/app/view/user/perso.html +++ b/app/view/user/perso.html @@ -370,10 +370,10 @@
- +

Veuillez ajouter une adresse postale ici

- +
-- GitLab From 0da381e16af0ddd429e42b144e424fcfd3764109 Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:40:43 +0100 Subject: [PATCH 12/14] Update perso.html --- app/view/user/perso.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/view/user/perso.html b/app/view/user/perso.html index cb98402..1e10916 100644 --- a/app/view/user/perso.html +++ b/app/view/user/perso.html @@ -371,7 +371,9 @@
-

Veuillez ajouter une adresse postale ici

+
+

Veuillez ajouter une adresse postale ici

+
-- GitLab From 2cd1f724cc154d312a9d1abe0cb23adbd9a4c585 Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:42:37 +0100 Subject: [PATCH 13/14] Check dans le cas ou il n'y a pas d'adresse --- app/view/user/perso.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/view/user/perso.html b/app/view/user/perso.html index 1e10916..ac1c5c7 100644 --- a/app/view/user/perso.html +++ b/app/view/user/perso.html @@ -370,12 +370,12 @@
- +

Veuillez ajouter une adresse postale ici

- +
-- GitLab From 3bd7fd6591479fcfd6c07a721833750b17afaf29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Tue, 6 Nov 2018 22:46:57 +0100 Subject: [PATCH 14/14] Fix template. Now counterparts should work. --- app/controller/perso.php | 6 +++--- app/view/user/perso.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controller/perso.php b/app/controller/perso.php index c644539..ab9d67e 100644 --- a/app/controller/perso.php +++ b/app/controller/perso.php @@ -390,13 +390,13 @@ class Perso extends Controller $db->query("INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status,commentaire) VALUES ('".$f3->get('SESSION.id')."',NOW(),'piplome','".\Utils::asl($piplome_id)."','".\Utils::asl($adresse_id)."',1, '".\Utils::asl($commentaire)."')"); break; case 'pibag': - $db->query("INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status) VALUES ('".$f3->get('SESSION.id')."',NOW(),'pibag','','".\Utils::asl($adresse_id)."',1, '".\Utils::asl($commentaire)."')"); + $db->query("INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status,commentaire) VALUES ('".$f3->get('SESSION.id')."',NOW(),'pibag','','".\Utils::asl($adresse_id)."',1, '".\Utils::asl($commentaire)."')"); break; case 'pishirt': - $db->query("INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status) VALUES ('".$f3->get('SESSION.id')."',NOW(),'pishirt','".\Utils::asl($taille)."','".\Utils::asl($adresse_id)."',1, '".\Utils::asl($commentaire)."')"); + $db->query("INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status,commentaire) VALUES ('".$f3->get('SESSION.id')."',NOW(),'pishirt','".\Utils::asl($taille)."','".\Utils::asl($adresse_id)."',1, '".\Utils::asl($commentaire)."')"); break; case 'hoopie': - $db->query("INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status) VALUES ('".$f3->get('SESSION.id')."',NOW(),'hoodie','".\Utils::asl($taille_h)."','".\Utils::asl($adresse_id)."',1, '".\Utils::asl($commentaire)."')"); + $db->query("INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status,commentaire) VALUES ('".$f3->get('SESSION.id')."',NOW(),'hoodie','".\Utils::asl($taille_h)."','".\Utils::asl($adresse_id)."',1, '".\Utils::asl($commentaire)."')"); } } // Puis diminution du cumul de la valeur des contreparties diff --git a/app/view/user/perso.html b/app/view/user/perso.html index ac1c5c7..f2313a4 100644 --- a/app/view/user/perso.html +++ b/app/view/user/perso.html @@ -461,7 +461,7 @@