{% extends "base.html" %}
|
|
{% block content %}
|
|
<h1 class="title is-1">Lista de repostajes</h1>
|
|
<a href="{{ url_for('add_repostaje') }}" class="button is-link">Añadir repostaje</a>
|
|
<table class="table is-fullwidth" border=1>
|
|
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Fecha</th>
|
|
<th>Vehículo</th>
|
|
<th>Kilómetros</th>
|
|
<th>Litros</th>
|
|
<th>Descuento</th>
|
|
<th>Precio por litro</th>
|
|
<th>Importe</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for repostajes in repostajes %}
|
|
<tr>
|
|
<td>{{ repostajes.identificador }}</td>
|
|
<td>{{ repostajes.fecha }}</td>
|
|
<td>{{ repostajes.vehiculo }}</td>
|
|
<td>{{ repostajes.kms }}</td>
|
|
<td>{{ repostajes.litros }}</td>
|
|
<td>{{ repostajes.descuento }}</td>
|
|
<td>{{ repostajes.precioxlitro }}</td>
|
|
<td>{{ repostajes.importe }}</td>
|
|
<td>
|
|
<a href="{{ url_for('edit_repostaje', id=repostajes.identificador) }}" class="button is-primary">Edit</a>
|
|
<a href="{{ url_for('delete_repostaje', id=repostajes.identificador) }}" class="button is-danger"">Delete</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|