|
|
@ -15,7 +15,7 @@ |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a class="flex-sm-fill text-sm-center nav-link" id="orders-pending-tab" data-bs-toggle="tab" href="#autores" role="tab" aria-controls="orders-pending" aria-selected="false">Vehículos</a> |
|
|
|
|
|
|
|
|
<a class="flex-sm-fill text-sm-center nav-link" id="orders-pending-tab" data-bs-toggle="tab" href="#autores" role="tab" aria-controls="orders-pending" aria-selected="false">Autores</a> |
|
|
</nav> |
|
|
</nav> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -29,25 +29,22 @@ |
|
|
<tr> |
|
|
<tr> |
|
|
<th class="cell">#</th> |
|
|
<th class="cell">#</th> |
|
|
<th class="cell">Fecha</th> |
|
|
<th class="cell">Fecha</th> |
|
|
<th class="cell">Vehículo</th> |
|
|
|
|
|
<th class="cell">Kilómetros</th> |
|
|
|
|
|
<th class="cell">Litros</th> |
|
|
|
|
|
<th class="cell">Descuento</th> |
|
|
|
|
|
<th class="cell">Precio/litro</th> |
|
|
|
|
|
<th class="cell">Importe</th> |
|
|
|
|
|
|
|
|
<th class="cell">Título</th> |
|
|
|
|
|
<th class="cell">Autor</th> |
|
|
|
|
|
<th class="cell">Portada</th> |
|
|
</tr> |
|
|
</tr> |
|
|
</thead> |
|
|
|
|
|
<tbody> |
|
|
<tbody> |
|
|
{% for libro in libros %} |
|
|
{% for libro in libros %} |
|
|
<tr> |
|
|
<tr> |
|
|
<td class="cell">{{ libro.id }}</td> |
|
|
<td class="cell">{{ libro.id }}</td> |
|
|
<td class="cell">{{ libro.fecha }}</td> |
|
|
<td class="cell">{{ libro.fecha }}</td> |
|
|
<td class="cell">{{ libro.autores.matricula }}</td> |
|
|
|
|
|
<td style="text-align: right" class="cell">{{ "%.0f"|format(libro.kms) }}</td> |
|
|
|
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(libro.litros) }}</td> |
|
|
|
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(libro.descuento) }}</td> |
|
|
|
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(libro.precioxlitro) }}</td> |
|
|
|
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(libro.importe) }}</td> |
|
|
|
|
|
|
|
|
<td class="cell">{{ libro.titulo }}</td> |
|
|
|
|
|
<td class="cell">{{ libro.autores.apellido }}, {{ libro.autores.nombre }}</td> |
|
|
|
|
|
{% if libro.portada %} |
|
|
|
|
|
<td class="cell"><img src="{{ url_for('paginas.uploaded_file', filename=libro.portada) }}" alt="{{ autor.apellido }}, {{ autor.nombre}}" style="width:200px;height:200px;"></td> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
<p>Sin imagen</p> |
|
|
|
|
|
{% endif %} |
|
|
</tr> |
|
|
</tr> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
</tbody> |
|
|
</tbody> |
|
|
@ -121,7 +118,7 @@ |
|
|
<tr> |
|
|
<tr> |
|
|
<td class="cell">{{ row.id }}</td> |
|
|
<td class="cell">{{ row.id }}</td> |
|
|
<td class="cell">{{ row.nombre }}</td> |
|
|
<td class="cell">{{ row.nombre }}</td> |
|
|
<td class="cell">{{ row.apellidos }}</td> |
|
|
|
|
|
|
|
|
<td class="cell">{{ row.apellido }}</td> |
|
|
{% if row.foto %} |
|
|
{% if row.foto %} |
|
|
<td class="cell"><img src="{{ url_for('paginas.uploaded_file', filename=row.foto) }}" alt="{{ row.apellido }}, {{ row.nombre}}" style="width:200px;height:200px;"></td> |
|
|
<td class="cell"><img src="{{ url_for('paginas.uploaded_file', filename=row.foto) }}" alt="{{ row.apellido }}, {{ row.nombre}}" style="width:200px;height:200px;"></td> |
|
|
{% else %} |
|
|
{% else %} |
|
|
|