From 78d8e163896667358ae820ebf906ca18d7c83543 Mon Sep 17 00:00:00 2001 From: okhin Date: Thu, 2 Feb 2017 19:14:33 +0100 Subject: [PATCH] Updating the feedback form --- app/Controller.php | 3 +++ app/Main.php | 3 --- templates/feedbackform.html | 42 ++++++++++++++++--------------------- 3 files changed, 21 insertions(+), 27 deletions(-) diff --git a/app/Controller.php b/app/Controller.php index 5d8d8aa..91c43a1 100644 --- a/app/Controller.php +++ b/app/Controller.php @@ -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 diff --git a/app/Main.php b/app/Main.php index 2aa7bfa..19f2ac3 100644 --- a/app/Main.php +++ b/app/Main.php @@ -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'); } diff --git a/templates/feedbackform.html b/templates/feedbackform.html index 4077bcb..209ae50 100644 --- a/templates/feedbackform.html +++ b/templates/feedbackform.html @@ -1,14 +1,4 @@ -
-
-
-
-
-

{{ @campaign.title }}

-

{{ @campaign.description }}

-
-
-
@@ -16,24 +6,29 @@
- + /static/img/placeholder.jpg{{ @contact.photo }}"> {{ @contact.first_name }} {{ @contact.last_name }}
-

{{ _("Phone number") }}: {{ @contact.phone }}

- -
- - {{ @group.type }} - - {{ @group.name }} -
+

{{ _("Phone number") }}: {{ @contact.phone }}

+ +
    {{ @group_type.name }} + + +
  • + + {{ @group.type }} + + {{ @group.name }} +
  • +
    +
-
{{ _("0. Initialising the call") }}
-
{{ _("1. Calling you") }}
+
{{ _("0. Initialising the call") }}
+
{{ _("1. Calling you") }}
{{ _("2. When ready, please dial 1 on your phone") }}
-
{{ _("3. Calling ")}}{{ @contact.full_name }}
-
{{ _("4. Connected to ") }}{{ @contact.full_name }}
+
{{ _("3. Calling ")}}{{ @contact.full_name }}
+
{{ _("4. Connected to ") }}{{ @contact.full_name }}

{{ _("Feedback Form") }}

@@ -143,4 +138,3 @@ interval = window.setInterval(fetch, 3000); }); -
-- GitLab