mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-16 09:42:42 +02:00
feat: add loading indicator to exchange-rates
This commit is contained in:
@@ -19,17 +19,23 @@
|
||||
<div class="card-header">
|
||||
<ul class="nav nav-pills card-header-pills" id="myTab" role="tablist">
|
||||
<li class="nav-item" role="presentation">
|
||||
<button class="nav-link active" data-bs-toggle="tab" type="button" role="tab" aria-controls="home-tab-pane" aria-selected="true" hx-get="{% url 'exchange_rates_list_pair' %}" hx-trigger="load, click" hx-target="#exchange-rates-table">{% translate 'All' %}</button>
|
||||
<button class="nav-link active" hx-indicator="#exchange-rates-table" data-bs-toggle="tab" type="button"
|
||||
role="tab" aria-controls="home-tab-pane" aria-selected="true"
|
||||
hx-get="{% url 'exchange_rates_list_pair' %}" hx-trigger="load, click"
|
||||
hx-target="#exchange-rates-table" aria-controls="#exchange-rates-table">{% translate 'All' %}</button>
|
||||
</li>
|
||||
{% for pair in pairings %}
|
||||
<li class="nav-item" role="presentation">
|
||||
<button class="nav-link" hx-get="{% url 'exchange_rates_list_pair' from_currency=pair.1 to_currency=pair.2 %}" hx-target="#exchange-rates-table" data-bs-toggle="tab" type="button" role="tab" aria-controls="profile-tab-pane" aria-selected="false">{{ pair.0 }}</button>
|
||||
<button class="nav-link" hx-indicator="#exchange-rates-table"
|
||||
hx-get="{% url 'exchange_rates_list_pair' from_currency=pair.1 to_currency=pair.2 %}"
|
||||
hx-target="#exchange-rates-table" data-bs-toggle="tab" type="button" role="tab"
|
||||
aria-controls="#exchange-rates-table" aria-selected="false">{{ pair.0 }}</button>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="exchange-rates-table"></div>
|
||||
<div id="exchange-rates-table" class="show-loading"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user