<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-2026 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 Cristo M. Estévez Hernández  <cristom.estevez@gmail.com>
 * @author Carlos García Gómez          <carlos@facturascripts.com>
-->
<view>
    <columns>
        <column name="id" display="none" order="100">
            <widget type="number" fieldname="idcron"/>
        </column>
        <column name="jobname" title="job-name" order="110">
            <widget type="text" fieldname="jobname"/>
        </column>
        <column name="plugin" order="120">
            <widget type="text" fieldname="pluginname"/>
        </column>
        <column name="enabled" display="none" order="130">
            <widget type="checkbox" fieldname="enabled"/>
        </column>
        <column name="running" display="right" order="140">
            <widget type="number" fieldname="running" decimal="0"/>
        </column>
        <column name="done" display="left" order="150">
            <widget type="checkbox" fieldname="done"/>
        </column>
        <column name="failed" display="right" order="160">
            <widget type="checkbox" fieldname="failed"/>
        </column>
        <column name="fails" display="left" order="170">
            <widget type="number" fieldname="fails" decimal="0"/>
        </column>
        <column name="duration" display="right" order="180">
            <widget type="seconds" fieldname="duration">
                <option color="danger">gt:30</option>
            </widget>
        </column>
        <column name="last-duration" display="left" order="190">
            <widget type="seconds" fieldname="last_duration">
                <option color="danger">gt:30</option>
            </widget>
        </column>
        <column name="daily-executions" display="right" order="200">
            <widget type="number" fieldname="daily_exec" decimal="0"/>
        </column>
        <column name="date" display="right" order="210">
            <widget type="datetime" fieldname="date"/>
        </column>
    </columns>
    <rows>
        <row type="status">
            <option color="warning" fieldname="enabled" title="disabled">0</option>
            <option color="danger" fieldname="failed" title="failed">1</option>
            <option color="dark" fieldname="done" title="in-progress">0</option>
            <option color="success" fieldname="enabled" title="enabled">1</option>
        </row>
    </rows>
</view>
