06/05 Optimize app: add quick filter for transaction page
This commit is contained in:
@@ -23,6 +23,24 @@
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Quick date filters -->
|
||||
<div class="d-flex gap-1 mb-3 align-items-center flex-wrap">
|
||||
<a href="{{ url_for('transactions.index', tab=tab, date_from=this_month_from, date_to=this_month_to, q=search, category_id=category_id, account_id=account_id) }}"
|
||||
class="btn btn-sm {% if active_quick == 'this_month' %}btn-primary{% else %}btn-outline-secondary{% endif %}" style="font-size:12px;">
|
||||
<i class="bi bi-calendar-check me-1"></i>This Month
|
||||
</a>
|
||||
<a href="{{ url_for('transactions.index', tab=tab, date_from=last_month_from, date_to=last_month_to, q=search, category_id=category_id, account_id=account_id) }}"
|
||||
class="btn btn-sm {% if active_quick == 'last_month' %}btn-primary{% else %}btn-outline-secondary{% endif %}" style="font-size:12px;">
|
||||
<i class="bi bi-calendar-minus me-1"></i>Last Month
|
||||
</a>
|
||||
{% if active_quick %}
|
||||
<a href="{{ url_for('transactions.index', tab=tab, q=search, category_id=category_id, account_id=account_id) }}"
|
||||
class="btn btn-sm btn-outline-secondary" style="font-size:12px;" title="Clear date filter">
|
||||
<i class="bi bi-x-lg"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!-- Filters -->
|
||||
<div class="pcard pcard-sm mb-3">
|
||||
<form method="GET" action="{{ url_for('transactions.index') }}" class="row g-2 align-items-end">
|
||||
|
||||
Reference in New Issue
Block a user