test/apps/gto/templates/object_edit.html

124 lines
5.8 KiB
HTML

{% extends "default.html" %}
{% load static %}
{% load mysettings %}
{% block header_link %}
{% endblock header_link %}
{% block content %}
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<ol class="breadcrumb float-sm-left">
<li class="breadcrumb-item"><a href="/gto/">Главная</a></li>
<li class="breadcrumb-item active">{{sensor.name}}</li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-3">
<!-- Profile Image -->
<div class="card card-primary card-outline">
<div class="card-body box-profile">
<div class="text-center">
<img class="profile-user-img img-fluid " src="{% static 'img/gto.webp' %}?ver={% settings_value 'APP_VER' %}" style="border:0px">
</div>
<h3 class="profile-username text-center">{{sensor.name}}</h3>
<h3 class="profile-username text-muted text-center">{{sensor.}}</h3>
<ul class="list-group list-group-unbordered mb-3">
<li class="list-group-item">
<b>Модель</b> <span class="float-right">{{sensor.model}}</span>
</li>
<li class="list-group-item">
<b>Гаражный номер</b> <span class="float-right">{{sensor.garagenum}}</span>
</li>
<li class="list-group-item">
<b>Государственный номер</b> <span class="float-right">{{sensor.statenum}}</span>
</li>
<li class="list-group-item">
<b>Время координат</b> <span class="float-right">{{sensor.time}}</span>
</li>
<li class="list-group-item">
<b>Широта</b> <span class="float-right">{{sensor.lat}}</span>
</li>
<li class="list-group-item">
<b>Долгота</b> <span class="float-right">{{sensor.lon}}</span>
</li>
<li class="list-group-item">
<b>Местонахождение</b> <span class="float-right">
<a href="#20234055" onclick="window.open('https://yandex.ru/maps/?l=sat,skl&ll={{sensor.getLon}},{{sensor.getLat}}&pt={{sensor.getLon}},{{sensor.getLat}}&z=18','map','width=950,height=750,status=no,toolbar=no,menubar=no');return false">
Показать
</a></span>
</li>
<li class="list-group-item">
<b>Скорость</b> <span class="float-right">{{sensor.speed}}</span>
</li>
</ul>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<div class="col-md-9">
<div class="card">
<div class="card-header card-primary card-outline">
<h3 class="card-title">Датчики </h3>
<div class="card-tools">
</div>
</div>
<!-- /.card-header -->
<div class="card-body table-responsive p-0" style="height: 615px;">
<table class="table table-bordered table-hover table-head-fixed text-nowrap">
<thead>
<tr>
<th>Наименование</th>
<th>Тип</th>
<th>Время</th>
<th>Значение</th>
</tr>
</thead>
<tbody id="table_sensor">
{% for sensor in sensor_list %}
<tr>
<td><a href="sensor/?id={{sensor.id}}">{{sensor.name}}</a></td>
<td><a href="sensor/?id={{sensor.id}}">{{sensor.type}}</a></td>
<td><a href="sensor/?id={{sensor.id}}">{{sensor.time}}</a></td>
<td><a href="sensor/?id={{sensor.id}}">{{sensor.value}}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
{% endblock %}
{% block script_footer %}
<!-- FLOT CHARTS -->
<script src="{% static 'lte/plugins/flot/jquery.flot.js' %}?ver={% settings_value 'APP_VER' %}"></script>
<!-- FLOT RESIZE PLUGIN - allows the chart to redraw when the window is resized -->
<script src="{% static 'lte/plugins/flot/plugins/jquery.flot.resize.js' %}?ver={% settings_value 'APP_VER' %}"></script>
<!-- FLOT PIE PLUGIN - also used to draw donut charts -->
<script src="{% static 'lte/plugins/flot/plugins/jquery.flot.pie.js' %}?ver={% settings_value 'APP_VER' %}"></script>
{% endblock script_footer %}