Commit d9f30223 by Félicie

condition added

parent 0a7b3ecd
......@@ -10,36 +10,37 @@
{% block blocksubtitle %}
{% endblock blocksubtitle %}
{% block blockcontent %}
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<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 %}
{% if not tav_env %}
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<td>{{flux.createdAt|date('d/m/Y H:i')}}</td>
{% 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>
<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>
{% endfor %}
</tbody>
</table>
</div>
<br/>
<div class="btn-group">
</thead>
<tbody>
{% for flux in fluxs %}
<tr>
<td>{{flux.createdAt|date('d/m/Y H:i')}}</td>
{% 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">
<i class="fa fa-share-square-o" aria-hidden="true"></i>
Exporter
......@@ -62,7 +63,15 @@
<i class="fa fa-arrow-circle-o-down" aria-hidden="true"></i>
XLS
</a>
</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 %}
{% endif %}
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