view: improve reconciliate_jar.

This commit is contained in:
2024-07-13 17:48:57 -05:00
parent 74d2e0d234
commit 08deb9d4ec
4 changed files with 36 additions and 11 deletions

View File

@@ -1,22 +1,27 @@
<!doctype html>
{% if summary.total %}
<div class="reconciliate_jar summary">
<div class="reconciliate_jar summary" style="border: solid 1px brown; margin: 10px">
<h2>Pagos No reconciliados</h2>
<table>
<table style="border: solid 1px blue; margin: 10px">
<thead>
<th><td>Fecha</td>Monto</th>
{% for payment in summary.payments %}
<tr><td>payment.date_time</td><td>payment.amount</td></tr>
{% endfor %}
<tr><th>Fecha</th><th>Monto</th></tr>
</thead>
{{ summary.total }}
<tbody>
{% for payment in summary.payments %}
<tr><td>{{ payment.date_time }}</td><td>{{ payment.amount }}</td></tr>
{% endfor %}
</tbody>
<tfoot>
<tr><th>Total</th><td>{{ summary.total }}</td></tr>
</tfoot>
</table>
</div>
<form method="POST">
<table style="border: solid 1px blue; margin: 10px">
{% csrf_token %}
{{ form.as_table }}
</table>
<br/><button name="form" type="submit" >Comprar</button>
<br/><button name="form" type="submit" >Recoger dinero</button>
</form>
{% else %}
<div class="reconciliate_jar information noform">