feat: add soft search to config pages

This commit is contained in:
Herculino Trotta
2024-12-01 12:15:56 -03:00
parent 4f14782f12
commit 3bcac31495
13 changed files with 373 additions and 329 deletions

View File

@@ -29,7 +29,9 @@
</ul>
</div>
<div id="recurring-transactions-table"></div>
<div class="card-body">
<div id="recurring-transactions-table"></div>
</div>
</div>
</div>

View File

@@ -1,13 +1,15 @@
{% load currency_display %}
{% load i18n %}
{% if status == "active" %}
<div class="card-body show-loading" hx-get="{% url 'active_recurring_transaction_list' %}" hx-trigger="updated from:window" hx-swap="outerHTML">
<div class="show-loading" hx-get="{% url 'active_recurring_transaction_list' %}" hx-trigger="updated from:window" hx-swap="outerHTML">
{% elif status == 'paused' %}
<div class="card-body show-loading" hx-get="{% url 'paused_recurring_transaction_list' %}" hx-trigger="updated from:window" hx-swap="outerHTML">
<div class="show-loading" hx-get="{% url 'paused_recurring_transaction_list' %}" hx-trigger="updated from:window" hx-swap="outerHTML">
{% elif status == 'finished' %}
<div class="card-body show-loading" hx-get="{% url 'finished_recurring_transaction_list' %}" hx-trigger="updated from:window" hx-swap="outerHTML">
<div class="show-loading" hx-get="{% url 'finished_recurring_transaction_list' %}" hx-trigger="updated from:window" hx-swap="outerHTML">
{% endif %}
{% if recurring_transactions %}
<c-config.search></c-config.search>
<div class="table-responsive">
<table class="table table-hover align-middle">
<thead>