Carga
Carga
This commit is contained in:
103
templates/sensoresm.html
Normal file
103
templates/sensoresm.html
Normal file
@@ -0,0 +1,103 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load static %}
|
||||
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block head %}
|
||||
|
||||
<!-- <meta http-equiv="refresh" content="1"> -->
|
||||
|
||||
{% 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>UNIVERSIDAD POLITÉCNICA DE TAPACHULA</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="example" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>SENSOR</th>
|
||||
<th>TEMPERATURA_S1</th>
|
||||
<th>HUMEDAD_S1</th>
|
||||
<th>TEMPERATURA_S2</th>
|
||||
<th>HUMEDAD_S2</th>
|
||||
<th>TEMPERATURA_S3</th>
|
||||
<th>HUMEDAD_S3</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for dato in datos %}
|
||||
<tr>
|
||||
<td>{{ dato.id }}</td>
|
||||
<td>{{ dato.idsensor }}</td>
|
||||
<td>{{ dato.temps1 }}</td>
|
||||
<td>{{ dato.humes1 }}</td>
|
||||
<td>{{ dato.temps2 }}</td>
|
||||
<td>{{ dato.humes2 }}</td>
|
||||
<td>{{ dato.temps3 }}</td>
|
||||
<td>{{ dato.humes3 }}</td>
|
||||
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div><!-- .animated -->
|
||||
</div><!-- .content -->
|
||||
{% endblock content %}
|
||||
|
||||
{% block javascript %}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#bootstrap-data-table-export').DataTable();
|
||||
} );
|
||||
</script>
|
||||
|
||||
{% endblock javascript %}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user