<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2019-2025 Carlos Garcia Gomez <carlos@facturascripts.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * @author Raúl Jiménez         <raljopa@gmail.com>
 * @author Carlos García Gómez  <carlos@facturascripts.com>
-->
<view>
    <columns>
        <column name="user" order="100">
            <widget type="text" fieldname="nick"/>
        </column>
        <column name="from" display="none" order="110">
            <widget type="text" fieldname="email_from"/>
        </column>
        <column name="to" order="120">
            <widget type="text" fieldname="addressee"/>
        </column>
        <column name="subject" order="130">
            <widget type="text" fieldname="subject"/>
        </column>
        <column name="opened" display="center" order="140">
            <widget type="checkbox" fieldname="opened"/>
        </column>
        <column name="attachments" title="has-attachments" display="center" order="150">
            <widget type="checkbox" fieldname="attachment"/>
        </column>
        <column name="date" display="right" order="160">
            <widget type="datetime" fieldname="date"/>
        </column>
    </columns>
    <rows>
        <row type="status">
            <option color="success" fieldname="opened" title="opened">1</option>
        </row>
    </rows>
    <modals>
        <group name="delete-multi" title="delete-logs" icon="fa-solid fa-trash-alt">
            <column name="from-date" numcolumns="12">
                <widget type="date" fieldname="delete_from" required="true"/>
            </column>
            <column name="until-date" numcolumns="12">
                <widget type="date" fieldname="delete_to" required="true"/>
            </column>
        </group>
    </modals>
</view>
