<?xml version="1.0" encoding="UTF-8" ?>
<templates>
    <t t-name="odex30_account_reports.AccountReportFilterVariant">
        <Dropdown>
            <button class="btn btn-secondary">
                <i class="fa fa-book me-1"/>Report: <t t-esc="selectedVariantName"/>
            </button>

            <t t-set-slot="content">
                <t t-foreach="controller.options.available_variants" t-as="variant" t-key="variant_index">
                    <DropdownItem
                        class="{ 'selected': controller.options.selected_variant_id === variant.id }"
                        onSelected="() => this.filterVariant(variant.id)"
                        t-out="variant.name"
                    />
                </t>
                <t t-if="controller.options.has_inactive_variants">
                    <div role="separator" class="dropdown-divider"/>
                    <DropdownItem onSelected="(ev) => controller.reportAction(ev, 'action_view_all_variants', {})">
                        Enable more ...
                    </DropdownItem>
                </t>
            </t>
        </Dropdown>
    </t>
</templates>
