78 lines
2.4 KiB
HTML
78 lines
2.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load static %}
|
|
|
|
{% block content %}
|
|
|
|
|
|
<!-- End Navbar -->
|
|
<div class="content">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
|
|
|
|
|
|
{% if user.is_superuser %}
|
|
|
|
{% endif %}
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-header card-header-primary">
|
|
<h4 class="card-title ">PREVENTIVO</h4>
|
|
<p class="card-category">REGISTROS</p>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="table-responsive">
|
|
<table class="table" id="data">
|
|
<thead class=" text-primary">
|
|
<th>__</th>
|
|
<th>ID</th>
|
|
<th>EQUIPO</th>
|
|
<th>FECHA INICIO</th>
|
|
<th>FECHA FIN</th>
|
|
<th>USUARIO</th>
|
|
<th>NOTAS</th>
|
|
<th>FECHA DE ALTA</th>
|
|
<th>ESTATUS</th>
|
|
<th>ACCIONES</th>
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
{% for dato in datos %}
|
|
<tr>
|
|
<td></td>
|
|
<td>{{ dato.id }}</td>
|
|
<td>{{ dato.n_control }}</td>
|
|
<td>{{ dato.fecha_start }}</td>
|
|
<td>{{ dato.fecha_end }}</td>
|
|
<td>{{ dato.usuario_id }}</td>
|
|
<td>{{ dato.notas }}</td>
|
|
<td>{{ dato.fecha_add }}</td>
|
|
<td>{{ dato.estatus }}</td>
|
|
<td>
|
|
{% if user.is_superuser %}
|
|
<a href="{% url 'actualizarpreventivo' dato.id %}" class="btn btn-primary">Actualizar</a>
|
|
{% endif %}
|
|
</td>
|
|
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock content %}
|
|
|
|
|