Commit d9f30223 by Félicie

condition added

parent 0a7b3ecd
...@@ -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 %}
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