diff --git a/Source/BusinessClass/BoxQuestion.php b/Source/BusinessClass/BoxQuestion.php index b8e0fb7..a881256 100644 --- a/Source/BusinessClass/BoxQuestion.php +++ b/Source/BusinessClass/BoxQuestion.php @@ -1,6 +1,6 @@ getCategories(); $html = "
- "; + "; for($i = 0; $i < count($possibleResponses); $i++) { diff --git a/Source/BusinessClass/Form.php b/Source/BusinessClass/Form.php index 979104e..2a27158 100644 --- a/Source/BusinessClass/Form.php +++ b/Source/BusinessClass/Form.php @@ -1,6 +1,6 @@ getForm(); require($rep.$views['form']); } diff --git a/Source/Model/ModelCandidate.php b/Source/Model/ModelCandidate.php new file mode 100644 index 0000000..8d37369 --- /dev/null +++ b/Source/Model/ModelCandidate.php @@ -0,0 +1,46 @@ +$title +

$description

+
+
"; + + foreach ($questions as $question) + { + $html.= $question->printStrategy(); + } + $html.= "
+
"; + + return $html; + } +} \ No newline at end of file diff --git a/Source/Views/HTML/form.php b/Source/Views/HTML/form.php index 78fc7ac..31d04aa 100644 --- a/Source/Views/HTML/form.php +++ b/Source/Views/HTML/form.php @@ -13,12 +13,8 @@ -

Votre témoignage nous intéresse !

- -
- -
+