Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
9d4824e6
Commit
9d4824e6
authored
Jan 18, 2022
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update show groupe template + fix liste presta by groupe
parent
cc5d55de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
show.html.twig
templates/themes/kohinos/groupe/show.html.twig
+9
-0
liste_prestataires.html.twig
templates/themes/kohinos/presta/liste_prestataires.html.twig
+10
-6
No files found.
templates/themes/kohinos/groupe/show.html.twig
View file @
9d4824e6
...
@@ -22,6 +22,15 @@
...
@@ -22,6 +22,15 @@
{%
endfor
%}
{%
endfor
%}
</ul>
</ul>
{%
endif
%}
{%
endif
%}
{%
if
groupe.prestataires
|
length
>
0
%}
<div
class=
"card-header"
><h2>
{{
groupe.prestataires
|
length
}}
{{
'Prestataires'
|
trans
}}
:
</h2></div>
<ul
class=
"list-group list-group-flush"
>
{%
for
presta
in
groupe.prestataires
%}
<li
class=
"list-group-item"
>
<a
href=
"
{{
path
(
'show_prestataire'
,
{
'slug'
:
presta.slug
}
)
}}
"
>
{{
presta.raison
}}
</a>
</li>
{%
endfor
%}
{%
endif
%}
</div>
</div>
</div>
</div>
</div>
</div>
...
...
templates/themes/kohinos/presta/liste_prestataires.html.twig
View file @
9d4824e6
...
@@ -2,13 +2,17 @@
...
@@ -2,13 +2,17 @@
{%
block
content
%}
{%
block
content
%}
<div
class=
'container prestalist mt-2'
>
<div
class=
'container prestalist mt-2'
>
{%
include
'@kohinos/block/breadcrumb.html.twig'
with
{
'label'
:
type
}
%}
{%
include
'@kohinos/block/breadcrumb.html.twig'
with
{
'label'
:
type
,
'label2'
:
'Prestataires'
,
'url2'
:
path
(
'liste_prestataire'
,
{
'order'
:
'groupelocal'
}
)
}
%}
<div
class=
"d-flex justify-content-center"
>
{%
if
type
==
'Prestataires'
%}
<div
class=
"btn-group text-center mb-2"
role=
"group"
aria-label=
"Basic example"
>
<div
class=
"d-flex justify-content-center"
>
<a
href=
'#'
type=
"button"
class=
"btn btn-primary"
>
Par nom
</a>
<div
class=
"btn-group text-center mb-2"
role=
"group"
aria-label=
"Basic example"
>
<a
href=
'
{{
path
(
'liste_prestataire'
,
{
'order'
:
'groupelocal'
}
)
}}
'
type=
"button"
class=
"btn btn-secondary"
>
Par groupe local
</a>
<a
href=
'#'
type=
"button"
class=
"btn btn-primary"
>
Par nom
</a>
<a
href=
'
{{
path
(
'liste_prestataire'
,
{
'order'
:
'groupelocal'
}
)
}}
'
type=
"button"
class=
"btn btn-secondary"
>
Par groupe local
</a>
</div>
</div>
</div>
</div>
{%
else
%}
<h1
class=
'text-primary mb-4'
>
{{
type
}}
</h1>
{%
endif
%}
<div
class=
"row"
>
<div
class=
"row"
>
{%
for
presta
in
prestas
%}
{%
for
presta
in
prestas
%}
<div
class=
"col-12 col-md-6 mb-2"
>
<div
class=
"col-12 col-md-6 mb-2"
>
...
...
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