Commit e63faae5 by Julien Jorry

Fix ARIA roles

parent 2c40bc50
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
{% if app.user is null and isPayzenEnabled() %} {% 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> <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"> <div class="dropdown-menu" aria-labelledby="navbarDropdown1">
<a href="/adherer" class="dropdown-item ">{{ 'Adhérer à la MLC'|trans }}</a> <a href="/adherer" class="dropdown-item ">{{ 'Adhérer à la MLC'|trans }}</a>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
{% endif %} {% endif %}
{# MENU UTILISATEUR AYANT ACCES A L'ADMIN CONNECTE #} {# MENU UTILISATEUR AYANT ACCES A L'ADMIN CONNECTE #}
{% if app.user and is_granted('ROLE_ADMIN') %} {% 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 }}"> <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 %} <i class="fas fa-cog text-primary"></i>{% if KOH_USE_WORDPRESS != 'false' %}<span class='ml-1 text-primary'>Administration</span>{% endif %}
</a> </a>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
{% endif %} {% endif %}
{% set printBugReport = KOH_BUG_REPORT|default('') %} {% 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') %} {% 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 }}"> <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> <i class="fas fa-bug"></i>
</a> </a>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
{% endif %} {% endif %}
{# MENU UTILISATEUR CONNECTE #} {# MENU UTILISATEUR CONNECTE #}
{% if app.user %} {% 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 }}'> <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; #}"> <span style="{# font-size: 1em; color: grey; #}">
<i class="fas fa-user"></i> <i class="fas fa-user"></i>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{% for menuItem in items %} {% for menuItem in items %}
{% set url = menuItem.url %} {% set url = menuItem.url %}
{% set attributes = "menu-item" %} {% set attributes = "menuitem" %}
{% if menuItem.classAttribute %} {% if menuItem.classAttribute %}
{% set attributes = attributes ~ ' ' ~ menuItem.classAttribute %} {% set attributes = attributes ~ ' ' ~ menuItem.classAttribute %}
{% endif %} {% endif %}
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
{% endfor %} {% endfor %}
{% endif %} {% 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() %} {% 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> <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 }}"> <div class="dropdown-menu" aria-labelledby="navbarDropdown{{ menuItem.id }}">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h5 class="modal-title" id="roleGroupeModalLongTitle">{{ 'Choix du rôle'|trans }}</h5> <h5 class="modal-title" id="roleGroupeModalTitle">{{ 'Choix du rôle'|trans }}</h5>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class='row'> <div class='row'>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment