49 lines
2.0 KiB
HTML
49 lines
2.0 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block title %}Lista de Comprovantes{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="card shadow-sm">
|
|
<div class="card-header bg-light">
|
|
<h4 class="card-title mb-0">
|
|
<i class="fas fa-list me-2"></i>Lista de Comprovantes
|
|
</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Data</th>
|
|
<th>Valor</th>
|
|
<th>Tipo</th>
|
|
<th>Ações</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for comprovante in comprovantes %}
|
|
<tr>
|
|
<td>{{ comprovante.id }}</td>
|
|
<td>{{ comprovante.data.strftime('%d/%m/%Y') }}</td>
|
|
<td>R$ {{ "%.2f"|format(comprovante.valor) }}</td>
|
|
<td>
|
|
{% if comprovante.tipo_comprovante_id == 1 %}
|
|
1 - Comprovante Padrão
|
|
{% elif current_user.has_permission('gerenciar_tipos_comprovante') %}
|
|
{% if comprovante.tipo_comprovante_id == 2 %}
|
|
2 - Comprovante Especial
|
|
<td>{{ comprovante.tipo }}</td>
|
|
<td>{{ comprovante.data }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |