You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Inventario_tienda/Inventario/templates/inventario_registro.html

60 lines
3.0 KiB

{% extends "Base.html" %}
{% block content %}
<main class="container my-5">
<div class="row justify-content-center">
<div class="col-md-10">
<div class="card shadow-lg border-0">
<div class="card-header text-center bg-secondary text-white">
<h3 class="mb-0">Inventario</h3>
</div>
<div class="card-body p-4">
<div class="table-responsive">
<table class="table table-bordered table-hover align-middle text-white">
<thead class="bg-dark text-secondary text-center">
<tr>
<th scope="col">#</th>
<th scope="col">Artículo</th>
<th scope="col">Descripción de Artículo</th>
<th scope="col">Bodega</th>
<th scope="col">Cantidad</th>
</tr>
</thead>
<tbody>
{% for inventario in persona %}
<tr class="text-center">
<td>{{ inventario.id }}</td>
<td>{{ inventario.articulo.nombre_articulo }} {{ inventario.articulo.medida }}</td>
<td>{{ inventario.articulo.descripcion }}</td>
<td>{{ inventario.bodega.nombre_bodega }}</td>
<td>{{ inventario.cantidad }}</td>
</tr>
{% empty %}
<tr>
<td colspan="5" class="text-center text-muted">No hay inventarios registrados.</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="fixed-bottom d-flex justify-content-end p-3">
<div class="btn-group dropup">
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
&#128194;
</button>
<ul class="dropdown-menu dropdown-menu-dark">
<li><a class="dropdown-item" href="{% url 'generar_reporte_pdf' %}">Descargar PDF</a></li>
<li><a class="dropdown-item" href="{% url 'generar_reporte_excel' %}">Descargar Excel</a></li>
<li><a class="dropdown-item" href="{% url 'generar_reporte_csv' %}">Descargar CSV</a></li>
<li><a class="dropdown-item" href="{% url 'generar_grafico_chartjs' %}">Generar Gráfico</a></li>
</ul>
</div>
</div>
</main>
{% endblock %}