From 9c1530d5a0309d66e117c8acc1a5e7c4ed9ee579 Mon Sep 17 00:00:00 2001 From: Alexis Date: Mon, 30 Jan 2023 18:36:50 +0100 Subject: [PATCH] Clean print --- Source/BusinessClass/CheckBoxQuestion.php | 6 +++--- Source/BusinessClass/ListBoxQuestion.php | 8 ++++---- Source/BusinessClass/TextQuestion.php | 8 ++++---- Source/BusinessClass/YesNoQuestion.php | 14 +++++++------- Source/Model/ModelCandidate.php | 2 +- Source/Views/HTML/form.php | 5 +++-- 6 files changed, 22 insertions(+), 21 deletions(-) diff --git a/Source/BusinessClass/CheckBoxQuestion.php b/Source/BusinessClass/CheckBoxQuestion.php index 054f582..58619c7 100644 --- a/Source/BusinessClass/CheckBoxQuestion.php +++ b/Source/BusinessClass/CheckBoxQuestion.php @@ -25,8 +25,8 @@ class CheckBoxQuestion extends BoxQuestion $possibleResponses = $this->getPossibleResponses(); $categories = $this->getCategories(); - $html = "\t\t\t
-\t\t\t\t\n"; + $html = "\t\t\t
+ \n"; for($i = 0; $i < count($possibleResponses); $i++) { @@ -36,7 +36,7 @@ class CheckBoxQuestion extends BoxQuestion $categoriesSplit.= $category."_"; } $html.= "\t\t\t\t -\t\t\t\t\n"; + \n"; } $html.= "\t\t\t
\n"; diff --git a/Source/BusinessClass/ListBoxQuestion.php b/Source/BusinessClass/ListBoxQuestion.php index d6426a0..e28d39e 100644 --- a/Source/BusinessClass/ListBoxQuestion.php +++ b/Source/BusinessClass/ListBoxQuestion.php @@ -25,16 +25,16 @@ class ListBoxQuestion extends BoxQuestion $possibleResponses = $this->getPossibleResponses(); $categories = $this->getCategories(); - $html = "\t\t\t
-\t\t\t\t -\t\t\t\t\n"; for($i = 0; $i < count($possibleResponses); $i++) { $html.= "\t\t\t\t\t\n"; } $html.= "\t\t\t\t -\t\t\t
\n"; +
\n"; return $html; } diff --git a/Source/BusinessClass/TextQuestion.php b/Source/BusinessClass/TextQuestion.php index 4af587a..ab82e0d 100644 --- a/Source/BusinessClass/TextQuestion.php +++ b/Source/BusinessClass/TextQuestion.php @@ -24,9 +24,9 @@ class TextQuestion extends Question public function printStrategy(): string // Possibilité de rajouter l'id de la question en parametre { // pour la mettre en id du input afin de la lier à ça question $content = $this->getContent(); - return "\t\t\t
-\t\t\t\t -\t\t\t\t -\t\t\t
\n"; + return "\t\t\t
+ + +
\n"; } } \ No newline at end of file diff --git a/Source/BusinessClass/YesNoQuestion.php b/Source/BusinessClass/YesNoQuestion.php index 69a6b45..06d649e 100644 --- a/Source/BusinessClass/YesNoQuestion.php +++ b/Source/BusinessClass/YesNoQuestion.php @@ -21,12 +21,12 @@ class YesNoQuestion extends Question public function printStrategy(): string { $content = $this->getContent(); - return "\t\t\t
-\t\t\t\t -\t\t\t\t -\t\t\t
\n"; + return "\t\t\t
+ + +
\n"; } } \ No newline at end of file diff --git a/Source/Model/ModelCandidate.php b/Source/Model/ModelCandidate.php index 7dc629c..5263c87 100644 --- a/Source/Model/ModelCandidate.php +++ b/Source/Model/ModelCandidate.php @@ -18,7 +18,7 @@ class ModelCandidate public function getForm(): string { /* TEMPORAIRE */ - $title = "Formulaire de candidature à un témoignage"; + $title = "Candidature à un témoignage"; $description = "Ce formulaire vous permet de candidater à un potentiel témoignage vidéo."; $questions = array( new TextQuestion("Décrivez-nous votre parcours en quelques lignes :", array(null)), diff --git a/Source/Views/HTML/form.php b/Source/Views/HTML/form.php index e064d33..fb591d2 100644 --- a/Source/Views/HTML/form.php +++ b/Source/Views/HTML/form.php @@ -2,7 +2,8 @@ - + + @@ -12,7 +13,7 @@ - + logo UCA