Skip to content

Commit

Permalink
Fix missing cancel interest button
Browse files Browse the repository at this point in the history
  • Loading branch information
morrigan committed Jul 22, 2024
1 parent f4b1eb8 commit 00d8f2e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions templates/single-excursion.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@
data-name="{{ post.title }}">Odjava</button>
{% elseif meta.deadline < now|date('Y-m-d') %}
<button class="course-disabled-button">Zaključan</button>
<span class="excursion-signup-waiting"
data-post="{{ post.ID }}"
data-name="{{ post.title }}"
data-date="{{ meta.starttime|date('j.n.Y.') }}">Zabilježi se na listu interesa</span>
{% if post.ID in signups.excursions_waiting %}
<span class="excursion-signout-waiting"
data-post="{{ post.ID }}"
data-name="{{ post.title }}"
data-date="{{ meta.starttime|date('j.n.Y.') }}">Odjavi se sa liste interesa</span>
{% elseif meta.limitation <= totalParticipants %}
<span class="excursion-signup-waiting"
data-post="{{ post.ID }}"
data-name="{{ post.title }}"
data-date="{{ meta.starttime|date('j.n.Y.') }}">Zabilježi se na listu interesa</span>
{% endif %}
{% elseif meta.limitation <= totalParticipants %}
<button class="course-disabled-button">Popunjen</button>
{% if post.ID in signups.excursions_waiting %}
Expand Down

0 comments on commit 00d8f2e

Please sign in to comment.