From ae03dd241857f54ad592b2f25df84e77bc8b09f0 Mon Sep 17 00:00:00 2001 From: Marne Date: Thu, 8 Nov 2018 15:40:29 +0100 Subject: [PATCH 01/43] -Ajout du message notifiant que l'identification se fait avec l'adresse mail -Ajout du lien vers la page d'accueil --- app/view/toolbar.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/view/toolbar.html b/app/view/toolbar.html index afe6167..ddaefa7 100644 --- a/app/view/toolbar.html +++ b/app/view/toolbar.html @@ -7,6 +7,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 61714dc54114346ed370d2638dd82971b15da07f Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:08:18 +0100 Subject: [PATCH 28/43] 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 de4b6f63ac46a1064b7a22f0d4259f3504005cb0 Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:13:43 +0100 Subject: [PATCH 29/43] 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 94f9e7b90c612d94bc03954f3e7d3d693eb6d24b Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:16:14 +0100 Subject: [PATCH 30/43] 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 d6583e3f1d641afd844a44a9fbc33ed9020635da Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:33:32 +0100 Subject: [PATCH 31/43] 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 05ca71ee0786b0d0f972bfeaa91a707fb8d3d541 Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:36:57 +0100 Subject: [PATCH 32/43] 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 ed772891a6b4edb9066c2eef1a582dc31780ba9a Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:40:43 +0100 Subject: [PATCH 33/43] 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 f5e3f54594782f898a80e9190f18a9838a72a36a Mon Sep 17 00:00:00 2001 From: Marne Date: Tue, 6 Nov 2018 13:42:37 +0100 Subject: [PATCH 34/43] 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 1b14a947c68396f78f4015368688702663ccd0d5 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 35/43] 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 @@

{{ @error }}

diff --git a/app/view/user/perso.html b/app/view/user/perso.html index f2313a4..08011ca 100644 --- a/app/view/user/perso.html +++ b/app/view/user/perso.html @@ -69,68 +69,54 @@ @@ -370,26 +356,24 @@
- -
-

Veuillez ajouter une adresse postale ici

-
-
- + +
- - +

{{ _("Envoyer à l'adresse :")}} {{ @adresse.nom }} - {{ @adresse.adresse }} {{@adresse.adresse2 }}

+
+
+ +
+

Veuillez ajouter une adresse postale ici

+
+
+
- + disabled>
-
@@ -405,11 +389,17 @@
- {{ _("Un pi-shirt") }} + {{ _("Un pi-shirt") }} ({{@atailles[@GET['taille']]}}) +
+ +
+ +
  • +
    + +
    +
    + {{ _("Un hoopie") }} ({{@atailles[@GET['taille_h']]}})
  • @@ -470,4 +470,25 @@ +
    + + +
    + + +
    + + + +
    + + +
    -- GitLab From 3e8bb2dc5445fd8e0319f084019d0a23d7884611 Mon Sep 17 00:00:00 2001 From: Okhin Date: Thu, 8 Nov 2018 18:23:47 +0100 Subject: [PATCH 41/43] Adding a HOME for dev --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d6ca9ad..9602c7d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -69,6 +69,7 @@ job install: environment: preprod variables: PHINX_ENVIRONMENT: "development" + PROD_HOME: "/home/don/don/" script: - chmod a+x ci/install.sh - ./ci/install.sh -- GitLab From 852c3f13d9d5a64ffb90618b59851524a151a016 Mon Sep 17 00:00:00 2001 From: Okhin Date: Thu, 8 Nov 2018 18:28:29 +0100 Subject: [PATCH 42/43] Reverting phinx.yml to correct values --- phinx.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phinx.yml b/phinx.yml index 160c783..bfef42f 100644 --- a/phinx.yml +++ b/phinx.yml @@ -17,9 +17,9 @@ environments: development: adapter: mysql host: localhost - name: don + name: soutien user: soutien - pass: 'soutien' + pass: 'password' port: 3306 charset: utf8 -- GitLab From e87549e16e20f263608ed4f849362ef50d7c16e2 Mon Sep 17 00:00:00 2001 From: Okhin Date: Thu, 8 Nov 2018 18:35:42 +0100 Subject: [PATCH 43/43] Same --- phinx.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phinx.yml b/phinx.yml index bfef42f..10928b5 100644 --- a/phinx.yml +++ b/phinx.yml @@ -19,7 +19,7 @@ environments: host: localhost name: soutien user: soutien - pass: 'password' + pass: 'soutien' port: 3306 charset: utf8 -- GitLab