Внёс мелкие правки и фиксы
This commit is contained in:
@@ -227,23 +227,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- LyngSat Filter -->
|
||||
<div class="mb-2">
|
||||
<label class="form-label">ТВ или нет:</label>
|
||||
<div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="checkbox" name="has_lyngsat" id="has_lyngsat_1"
|
||||
value="1" {% if has_lyngsat == '1' %}checked{% endif %}>
|
||||
<label class="form-check-label" for="has_lyngsat_1">Есть</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="checkbox" name="has_lyngsat" id="has_lyngsat_0"
|
||||
value="0" {% if has_lyngsat == '0' %}checked{% endif %}>
|
||||
<label class="form-check-label" for="has_lyngsat_0">Нет</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ObjectInfo Filter -->
|
||||
<div class="mb-2">
|
||||
<label class="form-label">Тип объекта:</label>
|
||||
@@ -262,6 +245,24 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- ObjectOwnership Filter -->
|
||||
<div class="mb-2">
|
||||
<label class="form-label">Принадлежность объекта:</label>
|
||||
<div class="d-flex justify-content-between mb-1">
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary"
|
||||
onclick="selectAllOptions('ownership_id', true)">Выбрать</button>
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary"
|
||||
onclick="selectAllOptions('ownership_id', false)">Снять</button>
|
||||
</div>
|
||||
<select name="ownership_id" class="form-select form-select-sm mb-2" multiple size="4">
|
||||
{% for ownership in object_ownerships %}
|
||||
<option value="{{ ownership.id }}" {% if ownership.id in selected_ownership %}selected{% endif %}>
|
||||
{{ ownership.name }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Point Count Filter -->
|
||||
<div class="mb-2">
|
||||
<label class="form-label">Количество точек:</label>
|
||||
@@ -435,6 +436,7 @@
|
||||
<th scope="col" style="min-width: 150px;">Имя</th>
|
||||
<th scope="col" style="min-width: 120px;">Спутник</th>
|
||||
<th scope="col" style="min-width: 120px;">Тип объекта</th>
|
||||
<th scope="col" style="min-width: 150px;">Принадлежность объекта</th>
|
||||
<th scope="col" style="min-width: 150px;">Координаты ГЛ</th>
|
||||
<th scope="col" class="text-center" style="min-width: 100px;">
|
||||
{% include 'mainapp/components/_sort_header.html' with field='objitem_count' label='Кол-во ГЛ(точек)' current_sort=sort %}
|
||||
@@ -443,7 +445,6 @@
|
||||
<th scope="col" style="min-width: 150px;">Координаты визуального наблюдения</th>
|
||||
<th scope="col" style="min-width: 150px;">Координаты справочные</th>
|
||||
<th scope="col" style="min-width: 180px;">Наличие сигнала</th>
|
||||
<th scope="col" class="text-center" style="min-width: 80px;">ТВ или нет</th>
|
||||
<th scope="col" style="min-width: 120px;">
|
||||
{% include 'mainapp/components/_sort_header.html' with field='created_at' label='Создано' current_sort=sort %}
|
||||
</th>
|
||||
@@ -473,6 +474,16 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ source.info }}</td>
|
||||
<td>
|
||||
{% if source.ownership == "ТВ" and source.has_lyngsat %}
|
||||
<a href="#" class="text-primary text-decoration-none"
|
||||
onclick="showLyngsatModal({{ source.lyngsat_id }}); return false;">
|
||||
<i class="bi bi-tv"></i> {{ source.ownership }}
|
||||
</a>
|
||||
{% else %}
|
||||
{{ source.ownership }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ source.coords_average }}</td>
|
||||
<td class="text-center">{{ source.objitem_count }}</td>
|
||||
<td>{{ source.coords_kupsat }}</td>
|
||||
@@ -501,16 +512,6 @@
|
||||
<span class="text-muted">-</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{% if source.has_lyngsat %}
|
||||
<a href="#" class="text-primary text-decoration-none"
|
||||
onclick="showLyngsatModal({{ source.lyngsat_id }}); return false;">
|
||||
<i class="bi bi-tv"></i> ТВ
|
||||
</a>
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>{{ source.created_at|date:"d.m.Y H:i" }}</td>
|
||||
<td>{{ source.updated_at|date:"d.m.Y H:i" }}</td>
|
||||
@@ -1091,7 +1092,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
setupRadioLikeCheckboxes('has_coords_kupsat');
|
||||
setupRadioLikeCheckboxes('has_coords_valid');
|
||||
setupRadioLikeCheckboxes('has_coords_reference');
|
||||
setupRadioLikeCheckboxes('has_lyngsat');
|
||||
setupRadioLikeCheckboxes('has_signal_mark');
|
||||
|
||||
// Update filter counter on page load
|
||||
|
||||
Reference in New Issue
Block a user