diff --git a/app/Main.php b/app/Main.php index 5346995e1ab17a36bcd5aa5ea0ae1dd486cec9e3..c07bfbbff80bdc73aec4feeb8882fdd2b1e357a0 100644 --- a/app/Main.php +++ b/app/Main.php @@ -5,11 +5,17 @@ class Main extends Controller { Main page */ function show($f3,$args) { + echo "TOTO"; $f3->set('block_content','home.html'); } function feedbackform($f3, $args) { $f3->set('block_content', 'feedbackform.html'); } + + function rcvfeedbackform($f3, $args) { + //send feedback to campaign + $f3->set('block_content', 'thankyou.html'); + } }; diff --git a/app/routes.ini b/app/routes.ini index cc0a27821326bb07b3ee51460ffe1b1448c75606..d8b8bae749976c67be5980aad019f64a24917bdd 100644 --- a/app/routes.ini +++ b/app/routes.ini @@ -2,3 +2,6 @@ ; Main site GET @home:/=Main->show +GET @feedback:/feedback=Main->feedbackform +POST @postfeedback:/feedback=Main->rcvfeedbackform + diff --git a/templates/feedbackform.html b/templates/feedbackform.html index 89d6a552ce52ba3f749d5fc63a35fcbbf5eb436f..a57fe38645d23cf99993bfa8727c2d75895d26f3 100644 --- a/templates/feedbackform.html +++ b/templates/feedbackform.html @@ -1,15 +1,15 @@
{{ _("Please tell us what happened if you was able to talk to someone. Your feedback is important to us.") }}
- \ No newline at end of file diff --git a/templates/thankyou.html b/templates/thankyou.html new file mode 100644 index 0000000000000000000000000000000000000000..f8e002c50bdc11a8cfbc7c5d858e68c17aaf6151 --- /dev/null +++ b/templates/thankyou.html @@ -0,0 +1 @@ +thank you!
\ No newline at end of file