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
debe137b
Commit
debe137b
authored
Apr 04, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6102 : bug due to missing emlcAccount on adherent of superadmin
parent
e1388016
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
menu.html.twig
templates/themes/kohinos/common/menu.html.twig
+7
-1
No files found.
templates/themes/kohinos/common/menu.html.twig
View file @
debe137b
...
@@ -81,7 +81,13 @@
...
@@ -81,7 +81,13 @@
<div
class=
"dropdown-menu dropdown-menu-right"
aria-labelledby=
"navbarDropdownUC"
>
<div
class=
"dropdown-menu dropdown-menu-right"
aria-labelledby=
"navbarDropdownUC"
>
{# COMPTE ou ECOMPTE : @TODO : mettre plutôt dans le header en visible tout le temps ? #}
{# COMPTE ou ECOMPTE : @TODO : mettre plutôt dans le header en visible tout le temps ? #}
{%
if
app.user
and
is_granted
(
'ROLE_ADHERENT'
)
%}
{%
if
app.user
and
is_granted
(
'ROLE_ADHERENT'
)
%}
<b
class=
"dropdown-item bg-primary text-white"
>
Ecompte :
{{
app.user.adherent.emlcAccount.balance
}}
</b>
<b
class=
"dropdown-item bg-primary text-white"
>
{%
if
app.user.adherent.emlcAccount
%}
Ecompte :
{{
app.user.adherent.emlcAccount.balance
}}
{%
else
%}
Aucun compte emlc existant.
{%
endif
%}
</b>
{%
elseif
app.user
and
is_granted
(
'ROLE_PRESTATAIRE'
)
and
getCurrentPrestataire
()
!=
null
%}
{%
elseif
app.user
and
is_granted
(
'ROLE_PRESTATAIRE'
)
and
getCurrentPrestataire
()
!=
null
%}
<b
class=
"dropdown-item bg-primary text-white"
>
Ecompte :
{{
getCurrentPrestataire
()
.
emlcAccount.balance
}}
</b>
<b
class=
"dropdown-item bg-primary text-white"
>
Ecompte :
{{
getCurrentPrestataire
()
.
emlcAccount.balance
}}
</b>
{%
elseif
getCurrentGroupe
()
!=
null
%}
{%
elseif
getCurrentGroupe
()
!=
null
%}
...
...
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