<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-2024 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 Carlos García Gómez      <carlos@facturascripts.com>
 * @author Francesc Pineda Segarra  <francesc.pineda.segarra@gmail.com>
-->
<view>
    <columns>
        <column name="id" order="0">
            <widget type="text" fieldname="id"/>
        </column>
        <column name="message" order="100">
            <widget type="textarea" fieldname="message"/>
        </column>
        <column name="channel" order="110">
            <widget type="text" fieldname="channel"/>
        </column>
        <column name="level" order="120">
            <widget type="text" fieldname="level"/>
        </column>
        <column name="user" order="130">
            <widget type="text" fieldname="nick"/>
        </column>
        <column name="url" order="140">
            <widget type="link" fieldname="uri"/>
        </column>
        <column name="ip" order="150">
            <widget type="text" fieldname="ip"/>
        </column>
        <column name="date" display="right" order="160">
            <widget type="datetime" fieldname="time"/>
        </column>
    </columns>
    <modals>
        <group name="delete-logs" 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>
            <column name="channel" numcolumns="12">
                <widget type="select" fieldname="delete_channel">
                    <values source="logs" fieldcode="channel" fieldtitle="channel"/>
                </widget>
            </column>
        </group>
    </modals>
    <rows>
        <row type="status">
            <option color="info" fieldname="level" title="type-info">info</option>
            <option color="success" fieldname="level" title="type-success">notice</option>
            <option color="warning" fieldname="level" title="type-warning">warning</option>
            <option color="danger" fieldname="level" title="type-error">error</option>
            <option color="dark" fieldname="level" title="type-critical">critical</option>
        </row>
    </rows>
</view>
