diff --git a/templates/elements/menu.html.twig b/templates/elements/menu.html.twig index 261f795..82e78d4 100644 --- a/templates/elements/menu.html.twig +++ b/templates/elements/menu.html.twig @@ -1,52 +1,60 @@ - - - - {{ ux_icon('material-symbols:dashboard-outline-rounded', {height: '16px', width: '16px'}) }} - Dashboard - - - - - {{ ux_icon('bi:menu-up', {height: '16px', width: '16px'}) }} - Menu - {{ ux_icon('bi:chevron-right', {height: '16px', width: '16px'}) }} - - - - {{ ux_icon('material-symbols-light:play-arrow-outline', {height: '16px', width: '16px'}) }} Accordions - {{ ux_icon('material-symbols-light:play-arrow-outline', {height: '16px', width: '16px'}) }} Buttons - {{ ux_icon('material-symbols-light:play-arrow-outline', {height: '16px', width: '16px'}) }} Badges - {{ ux_icon('material-symbols-light:play-arrow-outline', {height: '16px', width: '16px'}) }} Breadcrumbs - {{ ux_icon('material-symbols-light:play-arrow-outline', {height: '16px', width: '16px'}) }} Dropdowns - - - -{# if user is Super Admin#} - {% if is_granted('ROLE_ADMIN') %} - - - {{ ux_icon('fa6-regular:circle-user', {height: '15px', width: '15px'}) }} - Users - - - - - - {% if is_granted('ROLE_SUPER_ADMIN')%} - {{ ux_icon('bi:buildings', {height: '15px', width: '15px'}) }} - {% else %} - {{ ux_icon('bi:building', {height: '15px', width: '15px'}) }} - {% endif %} - - - {% if is_granted('ROLE_SUPER_ADMIN') %} - Organizations - {% else %} - Organization - {% endif %} - - - {% endif %} - + + + + {{ ux_icon('material-symbols:dashboard-outline-rounded', {height: '16px', width: '16px'}) }} + Dashboard + + + + + {{ ux_icon('bi:menu-up', {height: '16px', width: '16px'}) }} + Menu + {{ ux_icon('bi:chevron-right', {height: '16px', width: '16px'}) }} + + + + {{ ux_icon('material-symbols-light:play-arrow-outline', {height: '16px', width: '16px'}) }} + Accordions + {{ ux_icon('material-symbols-light:play-arrow-outline', {height: '16px', width: '16px'}) }} + Buttons + {{ ux_icon('material-symbols-light:play-arrow-outline', {height: '16px', width: '16px'}) }} + Badges + {{ ux_icon('material-symbols-light:play-arrow-outline', {height: '16px', width: '16px'}) }} + Breadcrumbs + {{ ux_icon('material-symbols-light:play-arrow-outline', {height: '16px', width: '16px'}) }} + Dropdowns + + + + {# if user is Super Admin #} + {% if is_granted('ROLE_ADMIN') %} + + + {{ ux_icon('fa6-regular:circle-user', {height: '15px', width: '15px'}) }} + Users + + + + {% if is_granted('ROLE_SUPER_ADMIN') %} + + {{ ux_icon('bi:buildings', {height: '15px', width: '15px'}) }} + + + Organizations + + {% elseif is_granted('ROLE_ADMIN') %} + + + {{ ux_icon('bi:building', {height: '15px', width: '15px'}) }} + + + Organization + + + {% endif %} + + {% endif %} + \ No newline at end of file