suivi/templates/admin/bill/_show.html.twig
2023-04-08 17:47:43 +02:00

28 lines
1.1 KiB
Twig

{% set values = {
'Référence': entity.reference,
'Fournisseur': entity.vendor,
'Montant TTC': entity.amountTtc is not null ? (entity.amountTtc|number_format(2, ',') ~ ' €') : '/',
'Montant HT': entity.amountHt is not null ? (entity.amountHt|number_format(2, ',') ~ ' €') : '/',
'Status': entity.humanStatus,
} %}
<div class="row">
<div class="col-md-12 p-3">
<div class="row">
<div class="col-md-4">
<div class="list-group">
{% for label, value in values %}
<div class="list-group-item">
<div class="font-weight-bold">{{ label|trans }}</div>
<div class="mb-3">{{ value }}</div>
</div>
{% endfor %}
</div>
</div>
<div class="col-md-8 pl-3">
<iframe src = "{{ asset('vendor/viewerjs/index.html#' ~ asset(entity.file)) }}" style="width: 100%; height: calc(100vh * 2 / 3)" u webkitallowfullscreen>
</iframe>
</div>
</div>
</div>
</div>