view: improve reconciliate_jar.
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user