125 lines
6.2 KiB
HTML
125 lines
6.2 KiB
HTML
{% extends "default.html" %}
|
|
{% load static %}
|
|
{% load mysettings %}
|
|
|
|
{% block header_link %}
|
|
<!-- Select2 -->
|
|
<link rel="stylesheet" href="{% static 'lte/plugins/select2/css/select2.min.css' %}?ver={% settings_value 'APP_VER' %}">
|
|
<link rel="stylesheet" href="{% static 'lte/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css' %}?ver={% settings_value 'APP_VER' %}">
|
|
|
|
{% endblock header_link %}
|
|
|
|
{% block content %}
|
|
<section class="content-header">
|
|
<div class="container-fluid">
|
|
<div class="row mb-2">
|
|
<div class="col-sm-6">
|
|
<h1 class="mb-2">Журнал визуальных наблюдений</h1>
|
|
{% if sector %}
|
|
<h5>{{ sector.name }}</h5>
|
|
{% endif %}
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<ol class="breadcrumb float-sm-right">
|
|
<li class="breadcrumb-item"><a href="{% url 'geoproc:geoproc_main_with_arg' sector.id %}">Главная</a></li>
|
|
<li class="breadcrumb-item active">Журнал визуальных наблюдений</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div><!-- /.container-fluid -->
|
|
</section>
|
|
|
|
<section class="content text-sm">
|
|
<div class="container-fluid ">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-header text-sm">
|
|
{% if not user.profile.isredonly %}
|
|
<a href="{% url 'geoproc:monitoring_journal_add' sector.id %}" type="button" class="btn bg-gradient-primary float-left" style="margin-right:20px;">Добавить</a>
|
|
{% endif %}
|
|
{% block pagination %}
|
|
{% if is_paginated %}
|
|
<ul class="pagination pagination no-margin text-sm">
|
|
{% if 1 < start_page_list %}
|
|
<li class="paginate_button page-item" id="mypaginator_next">
|
|
<a class="page-link" href="?page={{start_page_list|add:-1}}" aria-controls="mypaginator" data-dt-idx="{{start_page_list|add:-1}}" style="padding: .3rem .5rem;"><span>..</span></a>
|
|
</li>
|
|
|
|
{% endif %}
|
|
{% for n in page_list %}
|
|
{% if n == page_object.number %}
|
|
<li class="paginate_button page-item active" id="mypaginator_next">
|
|
<a class="page-link" href="?page={{n}}" aria-controls="mypaginator" data-dt-idx="{{n}}" style="padding: .3rem .5rem;"><span>{{n}}</span></a>
|
|
</li>
|
|
{% else %}
|
|
<li class="paginate_button page-item" id="mypaginator_next">
|
|
<a class="page-link" href="?page={{n}}" aria-controls="mypaginator" data-dt-idx="{{n}}" style="padding: .3rem .5rem;"><span>{{n}}</span></a>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% if end_page_list < num_pages %}
|
|
<li class="paginate_button page-item" id="mypaginator_next">
|
|
<a class="page-link" href="?page={{end_page_list|add:1}}" aria-controls="mypaginator" data-dt-idx="{{end_page_list|add:1}}" style="padding: .3rem .5rem;"><span>..</span></a>
|
|
</li>
|
|
|
|
{% endif %}
|
|
</ul>
|
|
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
</div> <!-- /.card-header -->
|
|
<div class="card-body table-responsive p-0">
|
|
<table class="table table-bordered table-hover table-head-fixed text-nowrap">
|
|
<thead>
|
|
<tr role="row">
|
|
<th class="col-1">№</th>
|
|
<th>Дата наблюдения</th>
|
|
<th>Наименование</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
{% if page_object %}
|
|
{% for catalog in page_object.object_list %}
|
|
<td style="width:10px;">
|
|
{{catalog.id}}
|
|
</td>
|
|
<td>
|
|
<form action="{% url 'geoproc:monitoring_journal_edit' sector.id %}?id={{catalog.id}}" id="frm_name_{{catalog.id}}" method="POST" class="floatLeft butDelUser">
|
|
{% csrf_token %}
|
|
<a href="#" onclick="document.getElementById('frm_name_{{catalog.id}}').submit(); return false;">
|
|
{{ catalog.date_time }}
|
|
</a>
|
|
<input type="hidden" value="{{catalog.id}}" name="id">
|
|
</form>
|
|
|
|
</td>
|
|
<td>
|
|
<form action="{% url 'geoproc:monitoring_journal_edit' sector.id %}?id={{catalog.id}}" id="frm_name_{{catalog.id}}" method="POST" class="floatLeft butDelUser">
|
|
{% csrf_token %}
|
|
<a href="#" onclick="document.getElementById('frm_name_{{catalog.id}}').submit(); return false;">
|
|
{{ catalog.name }}
|
|
</a>
|
|
<input type="hidden" value="{{catalog.id}}" name="id">
|
|
</form>
|
|
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
</div> <!-- /.card-body -->
|
|
</div> <!-- /.card -->
|
|
</div> <!-- /.row -->
|
|
</div><!-- /.container-fluid -->
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|
|
|
|
{% block script_footer %}
|
|
{% endblock script_footer %}
|