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
d9f30223
Commit
d9f30223
authored
Jan 10, 2023
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
condition added
parent
0a7b3ecd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
29 deletions
+38
-29
transactions.html.twig
templates/themes/kohinos/block/transactions.html.twig
+38
-29
No files found.
templates/themes/kohinos/block/transactions.html.twig
View file @
d9f30223
...
@@ -10,36 +10,37 @@
...
@@ -10,36 +10,37 @@
{%
block
blocksubtitle
%}
{%
block
blocksubtitle
%}
{%
endblock
blocksubtitle
%}
{%
endblock
blocksubtitle
%}
{%
block
blockcontent
%}
{%
block
blockcontent
%}
<div
class=
"table-responsive"
>
{%
if
not
tav_env
%}
<table
class=
"table"
>
<div
class=
"table-responsive"
>
<thead>
<table
class=
"table"
>
<tr>
<thead>
<th
scope=
"col"
>
Date
</th>
<th
scope=
"col"
>
Type
</th>
<th
scope=
"col"
>
Expediteur
</th>
<th
scope=
"col"
>
Destinataire
</th>
<th
scope=
"col"
>
Montant
</th>
</tr>
</thead>
<tbody>
{%
for
flux
in
fluxs
%}
<tr>
<tr>
<td>
{{
flux.createdAt
|
date
(
'd/m/Y H:i'
)
}}
</td>
<th
scope=
"col"
>
Date
</th>
{%
if
flux.type
==
'reconversion'
%}
<th
scope=
"col"
>
Type
</th>
<td>
Demande de reconversion
</td>
<th
scope=
"col"
>
Expediteur
</th>
{%
else
%}
<th
scope=
"col"
>
Destinataire
</th>
<td>
{{
flux.type
|
capitalize
|
replace
(
{
'_'
:
' '
}
)
}}
</td>
<th
scope=
"col"
>
Montant
</th>
{%
endif
%}
<td>
{{
flux.expediteur
}}
</td>
<td>
{{
flux.destinataire
}}
</td>
<td>
{{
flux.montant
}}
</td>
</tr>
</tr>
{%
endfor
%}
</thead>
</tbody>
<tbody>
</table>
{%
for
flux
in
fluxs
%}
</div>
<tr>
<br/>
<td>
{{
flux.createdAt
|
date
(
'd/m/Y H:i'
)
}}
</td>
<div
class=
"btn-group"
>
{%
if
flux.type
==
'reconversion'
%}
<td>
Demande de reconversion
</td>
{%
else
%}
<td>
{{
flux.type
|
capitalize
|
replace
(
{
'_'
:
' '
}
)
}}
</td>
{%
endif
%}
<td>
{{
flux.expediteur
}}
</td>
<td>
{{
flux.destinataire
}}
</td>
<td>
{{
flux.montant
}}
</td>
</tr>
{%
endfor
%}
</tbody>
</table>
</div>
<br/>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-primary dropdown-toggle"
data-toggle=
"dropdown"
id=
"dropdownMenuLink"
>
<button
type=
"button"
class=
"btn btn-primary dropdown-toggle"
data-toggle=
"dropdown"
id=
"dropdownMenuLink"
>
<i
class=
"fa fa-share-square-o"
aria-hidden=
"true"
></i>
<i
class=
"fa fa-share-square-o"
aria-hidden=
"true"
></i>
Exporter
Exporter
...
@@ -62,7 +63,15 @@
...
@@ -62,7 +63,15 @@
<i
class=
"fa fa-arrow-circle-o-down"
aria-hidden=
"true"
></i>
<i
class=
"fa fa-arrow-circle-o-down"
aria-hidden=
"true"
></i>
XLS
XLS
</a>
</a>
</div>
</div>
</div>
</div>
{%
else
%}
{%
for
flux
in
fluxs
%}
<p>
Montant total des transactions depuis le
{{
flux.createdAt
|
date
(
'd/m/Y H:i'
)
}}
:
<strong>
{{
flux.montant
}}
{{
KOH_MLC_SYMBOL
|
default
(
''
)
}}
</strong>
.
</tr>
{%
endfor
%}
{#
{{
array_sum(fluxs)}} #}
{%
endif
%}
{%
endblock
blockcontent
%}
{%
endblock
blockcontent
%}
{%
endif
%}
{%
endif
%}
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