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
e63faae5
Commit
e63faae5
authored
Jun 19, 2021
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ARIA roles
parent
2c40bc50
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
menu.html.twig
templates/themes/kohinos/common/menu.html.twig
+4
-4
menu_tree_macro.html.twig
templates/themes/kohinos/common/menu_tree_macro.html.twig
+2
-2
modale_choix_groupe.html.twig
...lates/themes/kohinos/common/modale_choix_groupe.html.twig
+1
-1
No files found.
templates/themes/kohinos/common/menu.html.twig
View file @
e63faae5
...
...
@@ -10,7 +10,7 @@
<ul
class=
"navbar-nav ml-auto"
>
{%
if
app.user
is
null
and
isPayzenEnabled
()
%}
<li
class=
"nav-item dropdownmenu-item has-child dropdown"
role=
"menu
-
item"
>
<li
class=
"nav-item dropdownmenu-item has-child dropdown"
role=
"menuitem"
>
<a
href=
"#"
id=
"navbarDropdown1"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
class=
"nav-link parent dropdown-toggle "
>
{{
'Adhérer'
|
trans
}}
</a>
<div
class=
"dropdown-menu"
aria-labelledby=
"navbarDropdown1"
>
<a
href=
"/adherer"
class=
"dropdown-item "
>
{{
'Adhérer à la MLC'
|
trans
}}
</a>
...
...
@@ -27,7 +27,7 @@
{%
endif
%}
{# MENU UTILISATEUR AYANT ACCES A L'ADMIN CONNECTE #}
{%
if
app.user
and
is_granted
(
'ROLE_ADMIN'
)
%}
<li
class=
"nav-item"
role=
"menu
-
item"
>
<li
class=
"nav-item"
role=
"menuitem"
>
<a
href=
"
{{
path
(
'sonata_admin_dashboard'
)
}}
"
class=
"nav-link"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"
{{
'Administration'
|
trans
}}
"
>
<i
class=
"fas fa-cog text-primary"
></i>
{%
if
KOH_USE_WORDPRESS
!=
'false'
%}
<span
class=
'ml-1 text-primary'
>
Administration
</span>
{%
endif
%}
</a>
...
...
@@ -35,7 +35,7 @@
{%
endif
%}
{%
set
printBugReport
=
KOH_BUG_REPORT
|
default
(
''
)
%}
{%
if
app.user
and
(
is_granted
(
'ROLE_ADMIN'
)
and
printBugReport
==
'ROLE_ADMIN'
)
or
(
is_granted
(
'ROLE_USER'
)
and
printBugReport
==
'ROLE_USER'
)
%}
<li
class=
"nav-item"
role=
"menu
-
item"
>
<li
class=
"nav-item"
role=
"menuitem"
>
<a
class=
'nav-link text-warning'
href=
'
{{
path
(
'bugreport'
)
}}
'
target=
'_blank'
rel=
"noopener noreferrer"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"
{{
'Reporter un bug'
|
trans
}}
"
>
<i
class=
"fas fa-bug"
></i>
</a>
...
...
@@ -43,7 +43,7 @@
{%
endif
%}
{# MENU UTILISATEUR CONNECTE #}
{%
if
app.user
%}
<li
class=
"nav-item dropdown"
role=
"menu
-
item"
>
<li
class=
"nav-item dropdown"
role=
"menuitem"
>
<a
href=
"#"
id=
"navbarDropdownUC"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
class=
"nav-link parent dropdown-toggle"
alt=
'
{{
app.user.name
}}
'
>
<span
style=
"
{# font-size: 1em; color: grey; #}
"
>
<i
class=
"fas fa-user"
></i>
...
...
templates/themes/kohinos/common/menu_tree_macro.html.twig
View file @
e63faae5
...
...
@@ -3,7 +3,7 @@
{%
for
menuItem
in
items
%}
{%
set
url
=
menuItem.url
%}
{%
set
attributes
=
"menu
-
item"
%}
{%
set
attributes
=
"menuitem"
%}
{%
if
menuItem.classAttribute
%}
{%
set
attributes
=
attributes
~
' '
~
menuItem.classAttribute
%}
{%
endif
%}
...
...
@@ -17,7 +17,7 @@
{%
endfor
%}
{%
endif
%}
<li
class=
"nav-item
{%
if
menuItem.hasChild
()
%}
dropdown
{%
endif
%}{{
attributes
}}
"
role=
"menu
-
item"
>
<li
class=
"nav-item
{%
if
menuItem.hasChild
()
%}
dropdown
{%
endif
%}{{
attributes
}}
"
role=
"menuitem"
>
{%
if
menuItem.hasChild
()
%}
<a
href=
"#"
id=
"navbarDropdown
{{
menuItem.id
}}
"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
class=
"nav-link parent dropdown-toggle
{%
if
currentPath
==
url
%}
current
{%
endif
%}
"
{%
if
menuItem.target
%}
target=
"_blank"
{%
endif
%}
>
{{
menuItem.name
}}
</a>
<div
class=
"dropdown-menu"
aria-labelledby=
"navbarDropdown
{{
menuItem.id
}}
"
>
...
...
templates/themes/kohinos/common/modale_choix_groupe.html.twig
View file @
e63faae5
...
...
@@ -3,7 +3,7 @@
<div
class=
"modal-dialog modal-dialog-centered"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
id=
"roleGroupeModal
Long
Title"
>
{{
'Choix du rôle'
|
trans
}}
</h5>
<h5
class=
"modal-title"
id=
"roleGroupeModalTitle"
>
{{
'Choix du rôle'
|
trans
}}
</h5>
</div>
<div
class=
"modal-body"
>
<div
class=
'row'
>
...
...
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