Files
Sensores/templates/telegram.html
2025-04-17 00:35:33 -06:00

102 lines
3.2 KiB
HTML

{% extends "base.html" %}
{% load static %}
{% load crispy_forms_tags %}
{% block head %}
<!-- <meta http-equiv="refresh" content="5"> -->
{% endblock head %}
{% block content %}
<div class="breadcrumbs">
<div class="breadcrumbs-inner">
<div class="row m-0">
<div class="col-sm-4">
<div class="page-header float-left">
<div class="page-title">
<h1>CIUDAD SALUD</h1>
</div>
</div>
</div>
<div class="col-sm-8">
<div class="page-header float-right">
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="animated fadeIn">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<strong class="card-title">sensor</strong>
</div>
<div class="card-body">
<table id="example1" class="table table-striped table-bordered">
<thead>
<tr>
<th>id</th>
<th>idBot</th>
<th>idGrupo</th>
<th>OPCIONES</th>
</tr>
</thead>
<tbody>
{% for dato in datos %}
<tr>
<td>{{ dato.id }}</td>
<td>{{ dato.idBot }}</td>
<td>{{ dato.idGrupo }}</td>
<td>
{% if user.is_superuser %}
<a href="{% url 'actualizatelegram' dato.id %}" class="btn btn-primary btn-rounded btn-lg" >Actualizar Datos</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div><!-- .animated -->
</div><!-- .content -->
{% endblock content %}
{% block javascript %}
<script type="text/javascript">
$(document).ready(function() {
$('#example1').DataTable({
"pageLength": 50,
"order": [[1, "desc" ]],
});
} );
</script>
{% endblock javascript %}