<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2019 Onestein
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->

<template>
    <div t-name="web_edit_user_filter.Popover">

        <div class="list-group">
            <t t-foreach="values" t-as="value">
                <a class="list-group-item list-group-item-action"
                   t-attf-data-value="#{typeof value.value === 'object' ? value.value.attrs.domain : value.value}">
                    <span>
                        <t t-esc="value.label"/>
                    </span>
                    <button class="btn btn-sm btn-link pull-right">
                        <span class="fa fa-close" />
                    </button>
                </a>
            </t>
        </div>
    </div>

    <t t-name="web_edit_user_filter.PopoverTemplate">
        <div class="popover o-edit-user-filter-popover" role="tooltip">
            <h3 class="popover-header"></h3>
            <div class="arrow"></div>
            <div class="popover-body"></div>
        </div>
    </t>
</template>
