{% set viewAll = pimcore_input('view-all', { placeholder: 'Linktext' }) %}
<div>
<div class="grid gap-4">
{% for raceday in racedays %}
{% include 'document/areabricks/current-races-brick/race-tile.html.twig' with {
raceday: raceday.day,
races: raceday.races
} %}
{% else %}
{% include 'document/areabricks/current-races-brick/empty-tile.html.twig' %}
{% endfor %}
</div>
{% if editmode or pimcore_link('view-full') is not empty %}
<div class="mt-12">
{% set link = pimcore_link('view-full', { placeholder: 'Link' }) %}
{% include 'component/button.html.twig' with {
text: editmode ? link : link.text,
type: 'primary',
icon_after: 'arrow-right-tail',
attr: { href: link.href, class: 'w-full' }
} only %}
</div>
{% endif %}
</div>