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
5401d0a6
Commit
5401d0a6
authored
Feb 07, 2017
by
okhin
Browse files
Creating the campaign page
parent
c1510fd1
Pipeline
#850
passed with stage
in 1 second
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Main.php
View file @
5401d0a6
...
...
@@ -115,6 +115,9 @@ class Main extends Controller {
}
function
campaign
(
$f3
,
$args
)
{
$arguments
=
Api
::
get_arguments
();
$f3
->
set
(
'arguments'
,
$arguments
);
$f3
->
set
(
'block_content'
,
'campaign.html'
);
}
...
...
templates/argumentation.html
View file @
5401d0a6
<div
class=
"row"
>
<div
class=
"container"
>
<h1
class=
"header center
-on-smal-only
"
>
{{ _("Arguments") }}
</h1>
<p
class=
"light
center-on-small-only
"
>
{{ _("Those are arguments to help
you
during a call to a
r
epresentative
.
") }}
<h1
class=
"header center"
>
{{ _("Arguments") }}
</h1>
<p
class=
"light"
>
{{ _("Those are
the
arguments to help during a call to a e
r
presentative") }}
</p>
<ul
class=
"collapsible popout"
data-collapsible=
"accordions"
>
<repeat
group=
"{{ @arguments }}"
value=
"{{ @argument }}"
counter=
"{{ @key }}"
>
...
...
templates/campaign.html
0 → 100644
View file @
5401d0a6
<div
class=
"section blue accent-4"
>
<div
class=
"container"
>
<h1
class=
"blue-grey-text text-darken-4 bold center"
>
{{ @organization.name }}
</h1>
<p
class=
"white-text"
>
{{ @organization.description }}
</p>
</div>
</div>
<div
class=
"section blue accent-2"
>
<div
class=
"container"
>
<h1
class=
"blue-grey-text text-darken-4 center bold"
>
{{ @campaign.title }}
</h1>
<p
class=
"white-text"
>
{{ @campaign.description }}
</p>
</div>
</div>
<div
class=
"section white"
>
<div
class=
"container"
>
<include
href=
"argumentation.html"
>
</div>
</div>
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