|
|
@ -1,21 +1,23 @@ |
|
|
{% extends "layout.html" %} |
|
|
{% extends "layout.html" %} |
|
|
{% block content %} |
|
|
{% block content %} |
|
|
<h1>Students List</h1> |
|
|
|
|
|
<a href="{{ url_for('add_repostaje') }}" class="btn btn-primary">Add Student</a> |
|
|
|
|
|
|
|
|
<h1>Lista de repostajes</h1> |
|
|
|
|
|
<a href="{{ url_for('add_repostaje') }}" class="btn btn-primary">Añadir repostaje</a> |
|
|
<table class="table"> |
|
|
<table class="table"> |
|
|
<thead> |
|
|
<thead> |
|
|
<tr> |
|
|
<tr> |
|
|
<th>ID</th> |
|
|
<th>ID</th> |
|
|
<th>Name</th> |
|
|
|
|
|
<th>Age</th> |
|
|
|
|
|
<th>Grade</th> |
|
|
|
|
|
<th>Actions</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> |
|
|
</tr> |
|
|
</thead> |
|
|
</thead> |
|
|
<tbody> |
|
|
<tbody> |
|
|
{% for repostajes in repostajess %} |
|
|
|
|
|
|
|
|
{% for repostajes in repostajes %} |
|
|
<tr> |
|
|
<tr> |
|
|
|
|
|
|
|
|
<td>{{ repostajes.identificador }}</td> |
|
|
<td>{{ repostajes.identificador }}</td> |
|
|
<td>{{ repostajes.fecha }}</td> |
|
|
<td>{{ repostajes.fecha }}</td> |
|
|
<td>{{ repostajes.vehiculo }}</td> |
|
|
<td>{{ repostajes.vehiculo }}</td> |
|
|
@ -25,8 +27,8 @@ |
|
|
<td>{{ repostajes.precioxlitro }}</td> |
|
|
<td>{{ repostajes.precioxlitro }}</td> |
|
|
<td>{{ repostajes.importe }}</td> |
|
|
<td>{{ repostajes.importe }}</td> |
|
|
<td> |
|
|
<td> |
|
|
<a href="{{ url_for('edit_record', id=repostajes.identificador) }}" class="btn btn-warning">Edit</a> |
|
|
|
|
|
<a href="{{ url_for('delete_record', id=repostajes.identificador) }}" class="btn btn-danger">Delete</a> |
|
|
|
|
|
|
|
|
<a href="{{ url_for('edit_repostaje', id=repostajes.identificador) }}" class="btn btn-warning">Edit</a> |
|
|
|
|
|
<a href="{{ url_for('delete_repostaje', id=repostajes.identificador) }}" class="btn btn-danger">Delete</a> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|