Update delivery date filter: change label and move 'Today' button to left

- Changed label from "Дата доставки" to "Дата доставки/самовывоза"
- Moved "Сегодня" button from right to left side (next to label)
- Removed justify-content-between to keep button aligned with label

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-07 23:36:32 +03:00
parent 6bbd615a77
commit fea650a35c
2 changed files with 3 additions and 3 deletions

View File

@@ -14,12 +14,12 @@
{% load static %} {% load static %}
<div class="date-range-filter mb-3"> <div class="date-range-filter mb-3">
<div class="d-flex align-items-center justify-content-between"> <div class="d-flex align-items-center">
<label class="form-label mb-0"> <label class="form-label mb-0">
<i class="bi bi-{{ icon|default:'calendar-range' }}"></i> <i class="bi bi-{{ icon|default:'calendar-range' }}"></i>
{{ label }} {{ label }}
</label> </label>
<button type="button" class="btn btn-sm btn-outline-primary ms-2 today-btn" <button type="button" class="btn btn-sm btn-outline-primary ms-2 today-btn"
data-min-input="{{ field_after.id_for_label }}" data-min-input="{{ field_after.id_for_label }}"
data-max-input="{{ field_before.id_for_label }}" data-max-input="{{ field_before.id_for_label }}"

View File

@@ -77,7 +77,7 @@
<!-- Календарный фильтр по дате доставки (вторая строка) --> <!-- Календарный фильтр по дате доставки (вторая строка) -->
<div class="row mt-3"> <div class="row mt-3">
<div class="col-12"> <div class="col-12">
{% include 'orders/components/date_range_filter.html' with field_after=filter.form.delivery_date_after field_before=filter.form.delivery_date_before label="Дата доставки" icon="truck" %} {% include 'orders/components/date_range_filter.html' with field_after=filter.form.delivery_date_after field_before=filter.form.delivery_date_before label="Дата доставки/самовывоза" icon="truck" %}
</div> </div>
</div> </div>
</form> </form>