Skip to content
GitLab
Menu
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
78d8e163
Commit
78d8e163
authored
Feb 02, 2017
by
okhin
Browse files
Updating the feedback form
parent
b11200c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/Controller.php
View file @
78d8e163
...
...
@@ -28,6 +28,9 @@ class Controller {
}
// Workaround for caching variables
$f3
->
set
(
'contacts'
,
$f3
->
get
(
'contacts'
));
$group_types
=
Api
::
get_group_types
();
$f3
->
set
(
'group_types'
,
$group_types
);
}
// Function called after routing
...
...
app/Main.php
View file @
78d8e163
...
...
@@ -19,9 +19,6 @@ class Main extends Controller {
$groups
=
Api
::
get_groups
();
$f3
->
set
(
'groups'
,
$groups
);
$group_types
=
Api
::
get_group_types
();
$f3
->
set
(
'group_types'
,
$group_types
);
$f3
->
set
(
'block_content'
,
'home.html'
);
}
...
...
templates/feedbackform.html
View file @
78d8e163
<!-- Let's split this page in two -->
<main>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"section indigo"
>
<div
class=
"container"
>
<h1
class=
"header white-text center-on-small-only"
>
{{ @campaign.title }}
</h1>
<h4
class=
"light indigo-text text-accent-1 center-on-small-only"
>
{{ @campaign.description }}
</h4>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col s6"
>
<include
href=
"argumentation.html"
>
...
...
@@ -16,24 +6,29 @@
<div
class=
"col s6"
>
<div
class=
"card"
>
<div
class=
"card-image"
>
<img
src=
"
/static/img/124786.jpg
"
>
<img
src=
"
<check if="
{{
@
contact.photo =
=
''
}}"
>
/static/img/placeholder.jpg
<false>
{{ @contact.photo }}
</false></check>
">
<span
class=
"card-title"
>
{{ @contact.first_name }} {{ @contact.last_name }}
</span>
</div>
<div
class=
"card-content"
>
<p>
{{ _("Phone number") }}:
</abbr>
<a
href=
"tel: {{ @contact.phone }}"
>
{{ @contact.phone }}
</a></p>
<repeat
group=
"{{ @contact.groups }}"
value=
"{{ @group }}"
>
<div
class=
"chip"
>
<check
if=
"{{ @group.media }}"
>
<img
src=
"{{ @group.media }}"
alt=
"{{ @group.type }}"
>
</check>
{{ @group.name }}
</div>
<p>
{{ _("Phone number") }}:
<a
href=
"tel:{{ @contact.phone }}"
>
{{ @contact.phone }}
</a></p>
<repeat
group=
"{{ @group_types }}"
value=
"{{ @group_type }}"
>
<ul
class=
"groups"
>
{{ @group_type.name }}
<repeat
group=
"{{ @contact.groups }}"
value=
"{{ @group }}"
>
<check
if=
"{{ @group.type == @group_type }}"
>
<li
class=
"chip"
>
<check
if=
"{{ @group.media }} != ''"
>
<img
src=
"{{ @group.media }}"
alt=
"{{ @group.type }}"
>
</check>
{{ @group.name }}
</li>
</repeat>
</ul>
</repeat>
<h5
id=
"step_init"
class=
"light text-lighten-2"
>
{{ _("0. Initialising the call") }}
</h
3
>
<h5
id=
"step_caller"
class=
"light text-lighten-2"
>
{{ _("1. Calling you") }}
</h
3
>
<h5
id=
"step_init"
class=
"light text-lighten-2"
>
{{ _("0. Initialising the call") }}
</h
5
>
<h5
id=
"step_caller"
class=
"light text-lighten-2"
>
{{ _("1. Calling you") }}
</h
5
>
<h5
id=
"step_wait"
class=
"light text-lighten-2"
>
{{ _("2. When ready, please dial 1 on your phone") }}
</h3>
<h5
id=
"step_callee"
class=
"light text-lighten-2"
>
{{ _("3. Calling ")}}{{ @contact.full_name }}
</h
3
>
<h5
id=
"step_connected"
class=
"light text-lighten-2"
>
{{ _("4. Connected to ") }}{{ @contact.full_name }}
</h
3
>
<h5
id=
"step_callee"
class=
"light text-lighten-2"
>
{{ _("3. Calling ")}}{{ @contact.full_name }}
</h
5
>
<h5
id=
"step_connected"
class=
"light text-lighten-2"
>
{{ _("4. Connected to ") }}{{ @contact.full_name }}
</h
5
>
</div>
<div
class=
"card-action"
>
<h4>
{{ _("Feedback Form") }}
</h4>
...
...
@@ -143,4 +138,3 @@
interval
=
window
.
setInterval
(
fetch
,
3000
);
});
</script>
</main>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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