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
aa0c1186
Commit
aa0c1186
authored
Nov 21, 2014
by
nepski
Browse files
feedbackform route + start chaging php
parent
d7dba444
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
aa0c1186
/tmp
app/config.php
.idea/
\ No newline at end of file
app/Main.php
View file @
aa0c1186
...
...
@@ -8,5 +8,8 @@ class Main extends Controller {
$f3
->
set
(
'block_content'
,
'home.html'
);
}
function
feedbackform
(
$f3
,
$args
)
{
$f3
->
set
(
'block_content'
,
'feedbackform.html'
);
}
};
templates/feedbackform.html
0 → 100644
View file @
aa0c1186
<h2>
{{ _("Feedback Form") }}
</h2>
<?php show_messages(); ?>
<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"]; ?>
">
<p>
<textarea
style=
"font-face: Arial, Helvetica, sans-serif; font-size: 12px; width: 600px; height: 300px"
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
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