Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
piphone-front
Commits
cff95262
Commit
cff95262
authored
Nov 22, 2014
by
nepski
Browse files
feedback and thankyou views
parent
aa0c1186
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/Main.php
View file @
cff95262
...
...
@@ -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'
);
}
};
app/routes.ini
View file @
cff95262
...
...
@@ -2,3 +2,6 @@
; Main site
GET
@home:/=Main->show
GET
@feedback:/
feedback
=
Main->feedbackform
POST
@postfeedback:/
feedback
=
Main->rcvfeedbackform
templates/feedbackform.html
View file @
cff95262
<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
templates/thankyou.html
0 → 100644
View file @
cff95262
<p>
thank you!
</p>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment