{# The winning-combination entry form for a race: one block per affected bet type (combinationRows from LiveRacingResultPresenter::buildCombinationEntryRows()), prefilled with each row's savedCombinations. Embedded by the race page (first result) and the Correct result page; override the `actions` block for the submit buttons. Vars: combinationRows, formAction, csrfToken, confirmText?, formTestid? #} {% macro combo_row(row, idx, combo) %} {% if row.isOddEven %}
=
{% else %}
{% for slot in row.slots %} {% set slotIdx = loop.index0 %} {% if not loop.first %}-{% endif %} {% endfor %}
=
{% endif %} {% endmacro %}
{% if combinationRows is not empty %}

Winning combinations

For each bet type, enter every winning combination (pick the horse for each position / leg) and its dividend. Add a row per winning combination — that covers dead heats too. Refund voids that bet type on this race.

{% for row in combinationRows %}
{% if row.kind == 'single' and not row.isOddEven %} {% endif %}
{% set saved = row.savedCombinations %} {% for combo in (saved is empty ? [null] : saved) %} {{ _self.combo_row(row, loop.index0, combo) }} {% endfor %}
{% endfor %}
{% endif %} {% block actions %} {% endblock %}