<?xml version="1.0" encoding="UTF-8" ?>
<templates>
    <t t-name="fusion_accounting.AccountReportFilterAccountType">
        <Dropdown>
            <button class="btn btn-secondary">
                <i class="fa fa-user me-1"/>Account: <t t-out="selectedAccountType"/>
            </button>

            <t t-set-slot="content">
                <t t-foreach="controller.options.account_type" t-as="accountTypeItem" t-key="accountTypeItem_index">
                    <DropdownItem
                        class="{ selected: accountTypeItem.selected }"
                        onSelected="() => this.filterClicked({ optionKey: 'account_type.' + accountTypeItem_index + '.selected', reload: true})"
                        closingMode="'none'"
                        t-out="accountTypeItem.name"
                    />
                </t>
            </t>
        </Dropdown>
    </t>
</templates>
