|
@@ -101,7 +101,11 @@
|
|
|
<button class="button is-primary" disabled>Inscrire</button>
|
|
|
{% endif %}
|
|
|
<a href="{{ path('app_party_modify', {id: party.slots.first.id}) }}" class="button is-primary open-modal">Éditer</a>
|
|
|
- <a href="{{ path('app_checkin_party', {id: party.id}) }}" class="button open-modal">Checkins</a>
|
|
|
+ {% if party.getSeatsOccuped > 0 %}
|
|
|
+ <a href="{{ path('app_checkin_party', {id: party.id}) }}" class="button open-modal">Checkins</a>
|
|
|
+ {% else %}
|
|
|
+ <button class="button" disabled>Checkins</button>
|
|
|
+ {% endif %}
|
|
|
</td>
|
|
|
</tr>
|
|
|
{% endfor %}
|