Commit cff95262 authored by nepski's avatar nepski

feedback and thankyou views

parent aa0c1186
......@@ -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');
}
};
......@@ -2,3 +2,6 @@
; Main site
GET @home:/=Main->show
GET @feedback:/feedback=Main->feedbackform
POST @postfeedback:/feedback=Main->rcvfeedbackform
<h2>{{ _("Feedback Form") }}</h2>
<?php show_messages(); ?>
<!-- error message -->
<p>{{ _("Please tell us what happened if you was able to talk to someone. Your feedback is important to us.") }}</p>
<form method="post" action="/campaign/feedbackdo/<?php echo $view["campaign"]["slug"]; ?>/<?php echo $view["callid"]; ?>">
<form method="post" action="/feedback/" >
<p>
<textarea style="font-face: Arial, Helvetica, sans-serif; font-size: 12px; width: 600px; height: 300px" id="feedback" name="feedback"></textarea>
<textarea id="feedback" name="feedback"></textarea>
</p>
<input type="submit" name="go" value="{{ _("Send my feedback") }}" />
<input type="button" name="cancel" value="{{ _("Cancel") }}" onclick="document.location='/campaign/go/<?php echo $view["campaign"]["slug"]; ?>'"/>
</form>
\ No newline at end of file
<p>thank you!</p>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment