<?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 Carlos García Gómez      <carlos@facturascripts.com>
 * @author Francesc Pineda Segarra  <francesc.pineda.segarra@gmail.com>
-->
<view>
    <columns>
        <group name="data" numcolumns="12">
            <column name="code" display="none" order="100">
                <widget type="text" fieldname="id"/>
            </column>
            <column name="description" numcolumns="3" order="110">
                <widget type="text" fieldname="description" required="true"/>
            </column>
            <column name="api-key" numcolumns="3" order="120">
                <widget type="password" fieldname="apikey" required="true"/>
            </column>
            <column name="user" titleurl="ListUser" numcolumns="2" order="130">
                <widget type="select" fieldname="nick" onclick="EditUser" readonly="true" required="true">
                    <values source="users" fieldcode="nick" fieldtitle="nick"/>
                </widget>
            </column>
            <column name="created" numcolumns="2" order="140">
                <widget type="date" fieldname="creationdate" readonly="true"/>
            </column>
            <column name="last-activity" numcolumns="2" order="150">
                <widget type="datetime" fieldname="lastactivity" readonly="true"/>
            </column>
            <column name="enabled" numcolumns="2" order="160">
                <widget type="checkbox" fieldname="enabled"/>
            </column>
            <column name="full-access" order="170">
                <widget type="checkbox" fieldname="fullaccess"/>
            </column>
        </group>
    </columns>
</view>