Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
balises-theatres.com
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Friends of FELINN
Balises
balises-theatres.com
Commits
6c48c7ba
Commit
6c48c7ba
authored
Jun 23, 2020
by
ornanovitch
🐃
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solution provisoire accordion liste théâtres
parent
86c2d35d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
assets/scss/custom/tricks.scss
assets/scss/custom/tricks.scss
+5
-0
templates/theater/list.html.twig
templates/theater/list.html.twig
+10
-10
No files found.
assets/scss/custom/tricks.scss
View file @
6c48c7ba
...
...
@@ -16,6 +16,11 @@
color
:
$light
!
important
;
}
#accordionTheatersBalises
.card-header.collapsed
{
background-color
:
$dark
!
important
;
color
:
$light
!
important
;
}
// change text offreBalises on hover
.offreBalises
:hover
span
{
display
:
none
...
...
templates/theater/list.html.twig
View file @
6c48c7ba
...
...
@@ -2,13 +2,14 @@
{%
block
title
%}
Liste des théâtres
{%
endblock
%}
{%
block
body
%}
<h1
class=
"w-100 font-weight-bold mb-3"
>
LES THÉÂTRES BALISES
</h1>
<div
class=
"accordion"
id=
"accordionTheatersBalises"
>
{%
set
city
=
""
%}
{%
for
theater
in
theaters
|
sort
((
a
,
b
)
=>
a.city
<=>
b.city
)
%}
{%
if
city
!=
theater.city
%}
<div
class=
"card bg-dark
border-y border-light
"
>
<a
class=
"h4 card-header
collapsed text-light
"
{%
set
city
=
""
%}
{%
for
theater
in
theaters
|
sort
((
a
,
b
)
=>
a.city
<=>
b.city
)
%}
{%
if
city
!=
theater.city
%}
<div
id=
"accordionTheatersBalises"
>
<div
class=
"card bg-dark"
>
<a
class=
"h4 card-header
bg-light collapsed text-dark
"
type=
"button"
data-toggle=
"collapse"
data-target=
"#
{{
theater.city
|
replace
(
{
' '
:
'_'
,
'\''
:
'-'
}
)
}}
"
...
...
@@ -32,10 +33,9 @@
</div>
</div>
</div>
{%
if
city
!=
""
%}
</div>
{%
endif
%}
{%
set
city
=
theater.city
%}
{%
endfor
%}
</div>
{%
set
city
=
theater.city
%}
{%
endfor
%}
{%
endblock
%}
Write
Preview
Markdown
is supported
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