67 lines
2.0 KiB
HTML

{% extends 'base.html' %}
{% block titulo %}
Unidad
{% endblock %}
{% block seccion %}
{% block titulodeseccion %} Unidad {% endblock%}
{% block etiqueta1 %}Inicio{% endblock %}
{% block etiqueta2 %} Información{% endblock %}
{% endblock %}
{% block contenido %}
<div class="row">
<div class="col-lg-12">
<div class="card card-dark card-outline">
<div class="card-header">
<div class="d-flex justify-content-between">
<h3></h3>
<a href="{% url 'crear_unidad' %}" class="btn btn-dark font-weight-bold"><i class="fas fa-solid fa-plus"></i> Agregar</a>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="example1" class="table align-items-center table-flush">
<thead class="thead-light">
<tr>
<th scope="col"></th>
<th scope="col">Nombre de la Unidad</th>
<th scope="col">Comandante</th>
<th scope="col">Telefono</th>
<th scope="col">Ubicación</th>
<th scope="col">Acciones</th>
</tr>
</thead>
<tbody>
{% for unidad in unidad %}
<tr class="">
<td>{{forloop.counter}}</td>
<td>{{unidad.nombreUnidad}}</td>
<td>{{unidad.comandante}}</td>
<td>{{unidad.telefono}}</td>
<td>{{unidad.ubicacion}}</td>
<td>
<a href="{% url 'unidad_articulo' unidad.id %}" class="btn btn-dark"><i class="fas fa-solid fa-eye"></i></a> |
<a href="{% url 'editar_unidad' unidad.id %}" class="btn btn-info"><i class="fas fa-solid fa-pen"></i></a> |
<a href="{% url 'eliminar_unidad' unidad.id %}" class="btn btn-danger"><i class="fas fa-solid fa-trash"></i></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock %}