Skip to content

Commit

Permalink
added indicator while you wait
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Oppenheimer authored and Aaron Oppenheimer committed Jul 24, 2024
1 parent 6b6353c commit c8b727e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions templates/agenda/agenda.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,22 @@
<label class="btn btn-sm btn-outline-secondary filter shadow-none active">
<input type="radio" name="options" id="option1" {% if button.3 %}checked{% endif %}
hx-get="{% url 'agenda-gigs' the_type=button.0 the_band=button.2 %}"
hx-target="#the-list">{{button.1}}
hx-target="#the-list" hx-indicator="#indicator">{{button.1}}
{% if button.4 %}
<span class="badge badge-secondary" id="needplan-badge">&nbsp;&nbsp;</span>
{% endif %}
</label>
{% if button.3 %}<span hx-get="{% url 'agenda-gigs' the_type=button.0 the_band=button.2 %}"
hx-target="#the-list" hx-trigger="load"></span>{% endif %}
hx-target="#the-list" hx-trigger="load" hx-indicator="#indicator"></span>{% endif %}
{% endfor %}
</div>
</div>
</div>
<div class="row mt-2"></div>
<div class="row" id="the-list">
<div class="col-md-10 col-12 mx-auto justify-content-start">
<i class="fas fa-spinner fa-pulse fa-lg htmx-indicator" id="indicator"></i>
</div>
</div>
{% endif %}

Expand Down
1 change: 1 addition & 0 deletions templates/agenda/agenda_gigs.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<div class="row titlerow">
<div class="col-12">
{{ title }}
<i class="fas fa-spinner fa-pulse fa-lg htmx-indicator" id="indicator"></i>
</div>
</div>
</div>
Expand Down

0 comments on commit c8b727e

Please sign in to comment.