abiball/templates/admin/checked_in.html.twig

8 lines
241 B
Twig
Raw Permalink Normal View History

{% if not field.value %}
<form action="{{ path('admin_checkin', {'entityId': entityId(field)}) }}" method="post">
<button type="submit">Einchecken</button>
</form>
{% else %}
<button disabled>Eingecheckt</button>
{% endif %}