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
6
Merge Requests
6
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
462de980
Commit
462de980
authored
Jan 14, 2022
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix login button for mobile
parent
686c2aba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
+20
-11
loginbutton.html.twig
templates/themes/kohinos/common/loginbutton.html.twig
+4
-0
index.html.twig
templates/themes/kohinos/index.html.twig
+16
-11
No files found.
templates/themes/kohinos/common/loginbutton.html.twig
0 → 100644
View file @
462de980
{%
if
app.user
is
null
%}
<a
class=
'btn btn-primary w-100 mb-4'
data-toggle=
"modal"
data-target=
"#
{{
modal_id
}}
"
title=
'
{{
'Se connecter'
|
trans
}}
'
href=
"
{{
path
(
'fos_user_security_login'
)
}}
"
>
{{
'Se connecter'
|
trans
}}
</a>
{%
endif
%}
\ No newline at end of file
templates/themes/kohinos/index.html.twig
View file @
462de980
...
...
@@ -2,8 +2,16 @@
{%
block
content
%}
<div
class=
'container homepage'
>
{# LOGIN MODALE#}
{%
set
modal_id
=
'mlcloginmodal'
%}
{%
set
modal_title
=
'Se connecter'
|
trans
%}
{%
set
modal_content
%}
{%
include
'@kohinos/common/login.html.twig'
%}
{%
endset
%}
{%
include
'@kohinos/block/modal.html.twig'
with
{
'btn_primary'
:
null
,
'btn_secondary'
:
null
}
%}
<div
class=
'row mt-3'
>
<div
class=
'col-12 order-
2 order-md-1 col-md-3 order-sm-2
col-sm-12 col-lg-3'
>
<div
class=
'col-12 order-
3 order-md-1 col-md-3 order-sm-3
col-sm-12 col-lg-3'
>
{%
block
colonne_gauche
%}
{%
include
'@kohinos/common/stats.html.twig'
%}
{%
include
'@kohinos/common/groupes.html.twig'
%}
...
...
@@ -12,20 +20,17 @@
</div>
<div
class=
'col-12 order-1 order-md-2 col-md-9 order-sm-1 col-sm-12 col-lg-6 text-center'
>
{%
block
colonne_centre
%}
<div
class=
'd-block d-sm-block d-md-block d-lg-none'
>
{%
include
'@kohinos/common/loginbutton.html.twig'
%}
</div>
{%
include
'@kohinos/block/useradmin.html.twig'
%}
{%
endblock
colonne_centre
%}
</div>
<div
class=
'col-12 order-
3 order-md-3 col-md-12 order-sm-3
col-sm-12 col-lg-3'
>
<div
class=
'col-12 order-
2 order-md-3 col-md-9 order-sm-2
col-sm-12 col-lg-3'
>
{%
block
colonne_droite
%}
{%
if
app.user
is
null
%}
{%
set
modal_id
=
'mlcloginmodal'
%}
{%
set
modal_title
=
'Se connecter'
|
trans
%}
{%
set
modal_content
%}
{%
include
'@kohinos/common/login.html.twig'
%}
{%
endset
%}
{%
include
'@kohinos/block/modal.html.twig'
with
{
'btn_primary'
:
null
,
'btn_secondary'
:
null
}
%}
<a
class=
'btn btn-primary w-100 mb-4'
data-toggle=
"modal"
data-target=
"#
{{
modal_id
}}
"
title=
'
{{
'Se connecter'
|
trans
}}
'
href=
"
{{
path
(
'fos_user_security_login'
)
}}
"
>
{{
'Se connecter'
|
trans
}}
</a>
{%
endif
%}
<div
class=
'd-none d-sm-none d-md-none d-lg-block'
>
{%
include
'@kohinos/common/loginbutton.html.twig'
%}
</div>
{%
include
'@kohinos/common/news.html.twig'
%}
{%
endblock
colonne_droite
%}
</div>
...
...
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