Commit 78d8e163 authored by okhin's avatar okhin

Updating the feedback form

parent b11200c8
...@@ -28,6 +28,9 @@ class Controller { ...@@ -28,6 +28,9 @@ class Controller {
} }
// Workaround for caching variables // Workaround for caching variables
$f3->set('contacts', $f3->get('contacts')); $f3->set('contacts', $f3->get('contacts'));
$group_types = Api::get_group_types();
$f3->set('group_types', $group_types);
} }
// Function called after routing // Function called after routing
......
...@@ -19,9 +19,6 @@ class Main extends Controller { ...@@ -19,9 +19,6 @@ class Main extends Controller {
$groups = Api::get_groups(); $groups = Api::get_groups();
$f3->set('groups', $groups); $f3->set('groups', $groups);
$group_types = Api::get_group_types();
$f3->set('group_types', $group_types);
$f3->set('block_content', 'home.html'); $f3->set('block_content', 'home.html');
} }
......
<!-- Let's split this page in two --> <!-- 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="row">
<div class="col s6"> <div class="col s6">
<include href="argumentation.html"> <include href="argumentation.html">
...@@ -16,24 +6,29 @@ ...@@ -16,24 +6,29 @@
<div class="col s6"> <div class="col s6">
<div class="card"> <div class="card">
<div class="card-image"> <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> <span class="card-title">{{ @contact.first_name }} {{ @contact.last_name }}</span>
</div> </div>
<div class="card-content"> <div class="card-content">
<p>{{ _("Phone number") }}:</abbr> <a href="tel: {{ @contact.phone }}">{{ @contact.phone }}</a></p> <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 }}"> <repeat group="{{ @contact.groups }}" value="{{ @group }}">
<div class="chip"> <check if="{{ @group.type == @group_type }}">
<check if="{{ @group.media }}"> <li class="chip">
<check if="{{ @group.media }} != ''">
<img src="{{ @group.media }}" alt="{{ @group.type }}"> <img src="{{ @group.media }}" alt="{{ @group.type }}">
</check> </check>
{{ @group.name }} {{ @group.name }}
</div> </li>
</repeat>
</ul>
</repeat> </repeat>
<h5 id="step_init" class="light text-lighten-2">{{ _("0. Initialising the call") }}</h3> <h5 id="step_init" class="light text-lighten-2">{{ _("0. Initialising the call") }}</h5>
<h5 id="step_caller" class="light text-lighten-2">{{ _("1. Calling you") }}</h3> <h5 id="step_caller" class="light text-lighten-2">{{ _("1. Calling you") }}</h5>
<h5 id="step_wait" class="light text-lighten-2">{{ _("2. When ready, please dial 1 on your phone") }}</h3> <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 }}</h3> <h5 id="step_callee" class="light text-lighten-2">{{ _("3. Calling ")}}{{ @contact.full_name }}</h5>
<h5 id="step_connected" class="light text-lighten-2">{{ _("4. Connected to ") }}{{ @contact.full_name }}</h3> <h5 id="step_connected" class="light text-lighten-2">{{ _("4. Connected to ") }}{{ @contact.full_name }}</h5>
</div> </div>
<div class="card-action"> <div class="card-action">
<h4>{{ _("Feedback Form") }}</h4> <h4>{{ _("Feedback Form") }}</h4>
...@@ -143,4 +138,3 @@ ...@@ -143,4 +138,3 @@
interval = window.setInterval(fetch, 3000); interval = window.setInterval(fetch, 3000);
}); });
</script> </script>
</main>
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