|
|
@@ -11,14 +11,24 @@
|
|
|
</h3>
|
|
|
|
|
|
<div class="board">
|
|
|
- <form method="get">
|
|
|
- <div>
|
|
|
- {{ form.mes.label_tag }} {{ form.mes }}
|
|
|
- {{ form.anio.label_tag }} {{ form.anio }}
|
|
|
- {{ form.categoria.label_tag }} {{ form.categoria }}
|
|
|
- <button type="submit">Filtrar</button>
|
|
|
- </div>
|
|
|
-</form>
|
|
|
+ <div class="form-group">
|
|
|
+ <form method="get">
|
|
|
+ <div class="row g-2 align-items-end">
|
|
|
+ <div class="col-auto">
|
|
|
+ {{ form.mes }}
|
|
|
+ </div>
|
|
|
+ <div class="col-auto">
|
|
|
+ {{ form.anio }}
|
|
|
+ </div>
|
|
|
+ <div class="col-auto">
|
|
|
+ {{ form.categoria }}
|
|
|
+ </div>
|
|
|
+ <div class="col-auto">
|
|
|
+ <button type="submit" class="btn btn-primary">Filtrar</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
|
|
|
<table width="100%">
|
|
|
<thead>
|
|
|
@@ -28,6 +38,7 @@
|
|
|
<th>Destino</th>
|
|
|
<th>Monto</th>
|
|
|
<th>Descripción</th>
|
|
|
+ <th></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
@@ -38,6 +49,17 @@
|
|
|
<td>{{ mov.cuenta_destino.nombre }}</td>
|
|
|
<td style="text-align: right;">{{ mov.monto|floatformat:2 }} €</td>
|
|
|
<td>{{ mov.descripcion }}</td>
|
|
|
+ <td class="edit">
|
|
|
+ <a href="{% url 'editar_movimiento' mov.id %}">
|
|
|
+ <i class="bi bi-pencil-square"></i>
|
|
|
+ </a>
|
|
|
+ <a href="{% url 'eliminar_movimiento' mov.id %}">
|
|
|
+ <i class="bi bi-trash3"></i>
|
|
|
+ </a>
|
|
|
+ <a href="{% url 'duplicar_movimiento' mov.id %}">
|
|
|
+ <i class="bi bi-copy"></i>
|
|
|
+ </a>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
{% endfor %}
|
|
|
</tbody>
|