{% extends 'wfbo/_layout.html.twig' %} {% block wfbo_title %}{{ override ? 'Edit' : 'New' }} Dividend Override{% endblock %} {% block wfbo_content %} {% for flash in app.flashes('error') %} {% endfor %}
{# ── Date section ── #}

Override Date

{% if override %} Date cannot be changed after creation. Delete and recreate to use a different date. {% else %} Select the date on which these dividends will override the defaults. {% endif %}

Leave both time fields blank to apply all day.

{# ── Dividends matrix section ── #}

Dividend Values

Set the payout for each pair of finishing positions on this date. Row = 1st finisher, Column = 2nd finisher.

{% for col in 6..2 %} {% endfor %} {% for row in 1..5 %} {% for col in 6..2 %} {% if col > row %} {% set key = row ~ '-' ~ col %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ col }}
{{ row }}
{% set shuffleChecked = override ? override.dividendShuffle : (submitted.shuffle ?? false) %}
Cancel
{% endblock %}