Добавил зоны для спутников
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
{% csrf_token %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<div class="mb-3">
|
||||
<label for="{{ form.name.id_for_label }}" class="form-label">
|
||||
{{ form.name.label }} <span class="text-danger">*</span>
|
||||
@@ -86,7 +86,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<div class="mb-3">
|
||||
<label for="{{ form.alternative_name.id_for_label }}" class="form-label">
|
||||
{{ form.alternative_name.label }}
|
||||
@@ -102,6 +102,23 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="mb-3">
|
||||
<label for="{{ form.location_place.id_for_label }}" class="form-label">
|
||||
{{ form.location_place.label }}
|
||||
</label>
|
||||
{{ form.location_place }}
|
||||
{% if form.location_place.errors %}
|
||||
<div class="invalid-feedback d-block">
|
||||
{{ form.location_place.errors.0 }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if form.location_place.help_text %}
|
||||
<div class="form-text">{{ form.location_place.help_text }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
@@ -95,6 +95,18 @@
|
||||
</div>
|
||||
<div class="offcanvas-body">
|
||||
<form method="get" id="filter-form">
|
||||
<!-- Location Place Selection -->
|
||||
<div class="mb-2">
|
||||
<label class="form-label">Комплекс:</label>
|
||||
<select name="location_place" class="form-select form-select-sm mb-2" multiple size="3">
|
||||
{% for value, label in location_places %}
|
||||
<option value="{{ value }}" {% if value in selected_location_places %}selected{% endif %}>
|
||||
{{ label }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Band Selection - Multi-select -->
|
||||
<div class="mb-2">
|
||||
<label class="form-label">Диапазон:</label>
|
||||
@@ -200,6 +212,16 @@
|
||||
{% endif %}
|
||||
</a>
|
||||
</th>
|
||||
<th scope="col" style="min-width: 80px;">
|
||||
<a href="javascript:void(0)" onclick="updateSort('location_place')" class="text-white text-decoration-none">
|
||||
Комплекс
|
||||
{% if sort == 'location_place' %}
|
||||
<i class="bi bi-arrow-up"></i>
|
||||
{% elif sort == '-location_place' %}
|
||||
<i class="bi bi-arrow-down"></i>
|
||||
{% endif %}
|
||||
</a>
|
||||
</th>
|
||||
<th scope="col" style="min-width: 100px;">
|
||||
<a href="javascript:void(0)" onclick="updateSort('norad')" class="text-white text-decoration-none">
|
||||
NORAD ID
|
||||
@@ -285,6 +307,7 @@
|
||||
<td class="text-center">{{ satellite.id }}</td>
|
||||
<td>{{ satellite.name }}</td>
|
||||
<td>{{ satellite.alternative_name|default:"-" }}</td>
|
||||
<td>{{ satellite.location_place }}</td>
|
||||
<td>{{ satellite.norad }}</td>
|
||||
<td>{{ satellite.international_code|default:"-" }}</td>
|
||||
<td>{{ satellite.bands }}</td>
|
||||
@@ -327,7 +350,7 @@
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="14" class="text-center text-muted">Нет данных для отображения</td>
|
||||
<td colspan="15" class="text-center text-muted">Нет данных для отображения</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
@@ -86,6 +86,18 @@
|
||||
value="{{ date_to }}">
|
||||
</div>
|
||||
|
||||
<!-- Location Place filter -->
|
||||
<div class="col-auto">
|
||||
<label class="form-label">Комплекс:</label>
|
||||
<select name="location_place" class="form-select" multiple size="2">
|
||||
{% for value, label in location_places %}
|
||||
<option value="{{ value }}" {% if value in selected_location_places %}selected{% endif %}>
|
||||
{{ label }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Satellite filter with custom widget -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label">Спутники:</label>
|
||||
|
||||
Reference in New Issue
Block a user