Страница с аспирационными установками
This commit is contained in:
parent
3aee192b4f
commit
65d5cb0d82
134
app/apps/main/templates/aspiration.html
Normal file
134
app/apps/main/templates/aspiration.html
Normal file
@ -0,0 +1,134 @@
|
||||
{% extends 'default.html' %}
|
||||
{% load static %}
|
||||
{% block extra_head %}
|
||||
<link href="{% static 'metronic/assets/vendors/custom/jquery-ui/jquery-ui.bundle.css' %}" rel="stylesheet"
|
||||
type="text/css">
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="row ui-sortable m-2 justify-content-center" id="m_sortable_portlets">
|
||||
<div class="col-2">
|
||||
<div class="m-portlet m-portlet--mobile m-portlet--sortable">
|
||||
<div class="m-portlet__head ui-sortable-handle">
|
||||
<div class="m-portlet__head-caption">
|
||||
<div class="m-portlet__head-title">
|
||||
<h3 class="m-portlet__head-text m--font-success">
|
||||
Аспирационная установка №1
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet__body p-0">
|
||||
<img src="{% static 'img/aspiration.gif' %}" class="aspiration_img" alt="">
|
||||
</div>
|
||||
<div class="m-portlet__foot">
|
||||
<div class="d-flex align-items-center justify-content-end">
|
||||
<span style="color: var(--gray);">Данные от 22.08.2024 16:46</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet m-portlet--sortable-empty"></div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="m-portlet m-portlet--mobile m-portlet--sortable">
|
||||
<div class="m-portlet__head ui-sortable-handle">
|
||||
<div class="m-portlet__head-caption">
|
||||
<div class="m-portlet__head-title">
|
||||
<h3 class="m-portlet__head-text m--font-success">
|
||||
Аспирационная установка №1
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet__body p-0">
|
||||
<img src="{% static 'img/aspiration.png' %}" class="aspiration_img" alt="">
|
||||
</div>
|
||||
<div class="m-portlet__foot">
|
||||
<div class="d-flex align-items-center justify-content-end">
|
||||
<span style="color: var(--gray);">Данные от 22.08.2024 16:46</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet m-portlet--sortable-empty"></div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="m-portlet m-portlet--mobile m-portlet--sortable">
|
||||
<div class="m-portlet__head ui-sortable-handle">
|
||||
<div class="m-portlet__head-caption">
|
||||
<div class="m-portlet__head-title">
|
||||
<h3 class="m-portlet__head-text m--font-success">
|
||||
Аспирационная установка №1
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet__body p-0">
|
||||
<img src="{% static 'img/aspiration.gif' %}" class="aspiration_img" alt="">
|
||||
</div>
|
||||
<div class="m-portlet__foot">
|
||||
<div class="d-flex align-items-center justify-content-end">
|
||||
<span style="color: var(--gray);">Данные от 22.08.2024 16:46</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet m-portlet--sortable-empty"></div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="m-portlet m-portlet--mobile m-portlet--sortable">
|
||||
<div class="m-portlet__head ui-sortable-handle">
|
||||
<div class="m-portlet__head-caption">
|
||||
<div class="m-portlet__head-title">
|
||||
<h3 class="m-portlet__head-text m--font-success">
|
||||
Аспирационная установка №1
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet__body p-0">
|
||||
<img src="{% static 'img/aspiration.gif' %}" class="aspiration_img" alt="">
|
||||
</div>
|
||||
<div class="m-portlet__foot">
|
||||
<div class="d-flex align-items-center justify-content-end">
|
||||
<span style="color: var(--gray);">Данные от 22.08.2024 16:46</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet m-portlet--sortable-empty"></div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="m-portlet m-portlet--mobile m-portlet--sortable">
|
||||
<div class="m-portlet__head ui-sortable-handle">
|
||||
<div class="m-portlet__head-caption">
|
||||
<div class="m-portlet__head-title">
|
||||
<h3 class="m-portlet__head-text m--font-success">
|
||||
Аспирационная установка №1
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet__body p-0">
|
||||
<img src="{% static 'img/aspiration.gif' %}" class="aspiration_img" alt="">
|
||||
</div>
|
||||
<div class="m-portlet__foot">
|
||||
<div class="d-flex align-items-center justify-content-end">
|
||||
<span style="color: var(--gray);">Данные от 22.08.2024 16:46</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-portlet m-portlet--sortable-empty"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block script_footer %}
|
||||
<script src="{% static 'metronic/assets/demo/default/custom/components/portlets/draggable.js' %}"
|
||||
type="text/javascript"></script>
|
||||
<script src="{% static 'metronic/assets/vendors/custom/jquery-ui/jquery-ui.bundle.js' %}"
|
||||
type="text/javascript"></script>
|
||||
{% endblock %}
|
||||
@ -23,15 +23,15 @@
|
||||
|
||||
<div class="row">
|
||||
<!--Виджет времени работы фабрики и ее статуса-->
|
||||
{% include 'fabric_worktime_widget.html' %}
|
||||
{% include 'widgets/fabric_worktime_widget.html' %}
|
||||
<div class="col-xl-8">
|
||||
<div class="row">
|
||||
<!--Виджет показаний весов -->
|
||||
{% include 'fabric_scales_control_widget.html' %}
|
||||
{% include 'widgets/fabric_scales_control_widget.html' %}
|
||||
<!--Количество аварийных остановок -->
|
||||
{# {% include 'emergency_stops_widget.html' %}#}
|
||||
<!--Виджет плотность в тяжелой среде -->
|
||||
{% include 'density_in_heavy.html' %}
|
||||
{% include 'widgets/density_in_heavy_widget.html' %}
|
||||
</div>
|
||||
|
||||
<!--end:: Widgets/Support Stats-->
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
from apps.main import views_main
|
||||
from apps.main.views_main import scales
|
||||
from apps.main.views_main import aspiration, scales
|
||||
from django.urls import include, path
|
||||
|
||||
urlpatterns = [
|
||||
@ -8,4 +8,5 @@ urlpatterns = [
|
||||
path('scada/ajax/', views_main.get_ajax, name='get_ajax'),
|
||||
path('', include('apps.main.services.urls')),
|
||||
path('scale/', scales, name='concentrate_and_dropout'),
|
||||
path('aspiration/', aspiration, name='aspiration')
|
||||
]
|
||||
|
||||
@ -53,3 +53,9 @@ def scada_index(request):
|
||||
@never_cache
|
||||
def scales(request):
|
||||
return render(request, 'concentrate_and_dropout.html')
|
||||
|
||||
|
||||
@login_required(login_url='/accounts/login/?next=')
|
||||
@never_cache
|
||||
def aspiration(request):
|
||||
return render(request, 'aspiration.html')
|
||||
|
||||
BIN
app/static/img/aspiration.gif
Normal file
BIN
app/static/img/aspiration.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 92 KiB |
BIN
app/static/img/aspiration.png
Normal file
BIN
app/static/img/aspiration.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@ -18,6 +18,7 @@
|
||||
<link rel="shortcut icon"
|
||||
href="{% static 'img/Cybercode.png' %}?ver={% settings_value 'APP_VERSION' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/style.css' %}?ver={% settings_value 'APP_VERSION' %}">
|
||||
{% block extra_head %}{% endblock %}
|
||||
</head>
|
||||
|
||||
<body class="m-page--fluid m--skin- m-content--skin-light2 m-header--fixed m-header--fixed-mobile m-aside-left--enabled m-aside-left--skin-dark m-aside-left--fixed m-aside-left--offcanvas m-footer--push m-aside--offcanvas-default m-brand--minimize m-aside-left--minimize">
|
||||
@ -77,7 +78,7 @@
|
||||
<i class="m-menu__ver-arrow la la-angle-right"></i>
|
||||
</a>
|
||||
<div class="m-menu__submenu m-menu__submenu--fixed m-menu__submenu--left"
|
||||
style="width:600px">
|
||||
style="width:1000px">
|
||||
<span class="m-menu__arrow m-menu__arrow--adjust" style="left: 71.5px;"></span>
|
||||
<div class="m-menu__subnav">
|
||||
<ul class="m-menu__content">
|
||||
@ -127,6 +128,22 @@
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="m-menu__item">
|
||||
<h3 class="m-menu__heading m-menu__toggle">
|
||||
<span class="m-menu__link-text">Аспирация</span>
|
||||
<i class="m-menu__ver-arrow la la-angle-right"></i>
|
||||
</h3>
|
||||
<ul class="m-menu__inner">
|
||||
<li class="m-menu__item " m-menu-link-redirect="1"
|
||||
aria-haspopup="true">
|
||||
<a href="{% url 'aspiration' %}"
|
||||
class="m-menu__link ">
|
||||
<i class="m-menu__link-icon flaticon-graphic-2"></i>
|
||||
<span class="m-menu__link-text">Работа аспирационных установок</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user