You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

57 lines
2.2 KiB

{% extends 'base.html' %}
{% block content %}
<div class="container-xl">
<div class="app-card app-card-notification shadow-sm mb-4">
<div class="app-card-header px-4 py-3">
<div class="row g-3 align-items-center">
<div class="col-12 col-lg-auto text-center text-lg-start">
<h4>{{ cuenta.nombre }}</h4>
<ul class="notification-meta list-inline mb-0">
<li class="list-inline-item">Saldo: {{ cuenta.saldo_actual }} €</li>
</ul>
</div>
</div>
</div>
<div class="app-card-body p-4">
{% if apuntes %}
<table class="table app-table-hover mb-0 text-left">
<thead>
<tr>
<th class="cell">Fecha</th>
<th class="cell">Origen</th>
<th class="cell">Destino</th>
<th class="cell">Importe</th>
</tr>
</thead>
<tbody>
{% for apunte in apuntes %}
<tr>
<td class="cell"><a href="{% url 'detalle_apunte' apunte.id %}">{{ apunte.fecha }}</a></td>
<td class="cell">{{ apunte.cta_origen }}</td>
<td class="cell">{{ apunte.cta_destino }}</td>
<td class="cell" align="right">{{ apunte.importe }} €</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No se han encontrado apuntes para este cuenta</p>
{% endif %}
</div>
</div>
<div class="row g-3 mb-4 align-items-center justify-content-between">
<div class="col-auto">
<a class="btn app-btn-secondary" href="{% url 'lista_apuntes' %}">Volver al inicio</a>
</div>
<div class="col-auto">
<a class="btn app-btn-primary" href="{% url 'nuevo_apunte' %}">Añadir apunte</a> <!-- Faltaría poner el id del cuenta-->
</div>
</div>
</div>
{% endblock %}