Commit c3ec2470 authored by okhin's avatar okhin 🚴

Fixing the campaign page

parent 06cb8103
Pipeline #852 passed with stage
in 1 second
......@@ -114,13 +114,6 @@ class Main extends Controller {
$f3->set('block_content', 'argumentation.html');
}
function campaign($f3, $args) {
$arguments = Api::get_arguments();
$f3->set('arguments', $arguments);
$f3->set('block_content', 'campaign.html');
}
function piphone($f3, $args) {
$f3->set('block_content', 'piphone.html');
}
......
......@@ -6,7 +6,6 @@ GET|POST @call:/call/@id=Main->call
GET @contactslist:/contactslist=Main->contactslist
GET @feedbacksip:/calls/@callid=SIP->feedbacksip
GET @argumentation:/argumentation=Main->argumentation
GET @campaign:/campaign=Main->campaign
GET @piphone:/piphone=Main->campaign
; Fake REST API
......
<div class="row">
<div class="container">
<h1 class="header center">{{ _("Arguments") }}</h1>
<h3 class="grey-blue-text text-darken-4 header center">{{ _("Arguments") }}</h3>
<p class="light">
{{ _("Those are the arguments to help during a call to a erpresentative") }}
{{ _("Those are arguments we provide you to help you convince the representative you will call.") }}
</p>
<ul class="collapsible popout" data-collapsible="accordions">
<repeat group="{{ @arguments }}" value="{{ @argument }}" counter="{{ @key }}">
......
<div class="section blue accent-4">
<div class="section">
<div class="container">
<h1 class="blue-grey-text text-darken-4 bold center">{{ @organization.name }}</h1>
<p class="white-text">{{ @organization.description }}</p>
<h3 class="blue-grey-text text-darken-4 bold center">{{ @organization.name }}</h1>
<p class="">{{ @organization.description }}</p>
</div>
</div>
<div class="section blue accent-2">
<div class="section blue-grey">
<div class="container">
<h1 class="blue-grey-text text-darken-4 center bold">{{ @campaign.title }}</h1>
<p class="white-text">{{ @campaign.description }}</p>
<h3 class="blue-grey-text text-darken-4 center bold">{{ @campaign.title }}</h1>
<p class="blue-grey-text text-lighten-4">{{ @campaign.description }}</p>
</div>
</div>
<div class="section white">
......
......@@ -46,7 +46,7 @@
<div class="container nav-wrapper">
<ul class="left">
<li class="waves-effect <check if="{{ @block_content == 'home.html' }}">active</check>"><a href="/#navbar"><b>{{ _("Act") }}</b></a></li>
<li class="waves-effect <check if="{{ @block_content == 'campaign.html' }}">active</check>"><a href="/campaign#navbar">{{ _("About the campaign") }}</a></li>
<li class="waves-effect <check if="{{ @block_content == 'argumenation.html' }}">active</check>"><a href="/argumentation#navbar">{{ _("About the campaign") }}</a></li>
<li class="waves-effect <check if="{{ @block_content == 'piphone.html' }}">active</check>"><a href="/piphone#navbar">{{ _("About the piphone") }}</a></li>
</ul>
</div>
......
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