<?xml version="1.0" encoding="utf-8" ?>
<templates xml:space="preserve">
    <t t-name="bi_view_editor.Frame" owl="1">
        <div class="oe_form_field_bi_editor">
            <div class="body">
                <div class="left">
                    <ModelList
                        models="state.models"
                        fieldClicked.bind="fieldClicked"
                        readonly="props.readonly"
                    />
                </div>
                <div class="right" t-on-dragover="onDragOver" t-on-drop="onDrop">
                    <FieldList
                        fields="state.fields"
                        fieldsByID="state.fieldsByID"
                        deleteField.bind="deleteField"
                        setFieldProperty.bind="setFieldProperty"
                        readonly="props.readonly"
                    />
                </div>
                <div class="clear" />
            </div>
            <div class="footer">
                <div class="left" />
                <div class="right">
                    <button
                        t-if="!props.readonly"
                        class="btn btn-secondary"
                        t-on-click="clear"
                    >
                        <span class="fa fa-eraser" />
                        Clear
                    </button>
                </div>
            </div>
        </div>
    </t>
</templates>
