<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2019-2024 Carlos García Gómez <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 Frank Aguirre        <faguirre@soenac.com>
 * @author Carlos García Gómez  <carlos@facturascripts.com>
-->
<view>
    <columns>
        <group name="data" numcolumns="12">
            <column name="id" display="none" order="100">
                <widget type="text" fieldname="idciudad"/>
            </column>
            <column name="province" titleurl="ListProvincia" order="110">
                <widget type="select" fieldname="idprovincia" readonly="true" onclick="EditProvincia" required="true">
                    <values source="provincias" fieldcode="idprovincia" fieldtitle="provincia"/>
                </widget>
            </column>
            <column name="city" order="120">
                <widget type="text" fieldname="ciudad" icon="fa-solid fa-city" required="true"/>
            </column>
            <column name="code" description="optional" numcolumns="2" order="130">
                <widget type="text" maxlength="5" fieldname="codeid" icon="fa-solid fa-hashtag"/>
            </column>
            <column name="latitude" numcolumns="2" order="140">
                <widget type="number" fieldname="latitude"/>
            </column>
            <column name="longitude" numcolumns="2" order="150">
                <widget type="number" fieldname="longitude"/>
            </column>
            <column name="alias" numcolumns="12" order="160">
                <widget type="textarea" fieldname="alias"/>
            </column>
        </group>
        <group name="logs" numcolumns="12">
            <column name="creation-date" order="100">
                <widget type="datetime" fieldname="creation_date" readonly="true"/>
            </column>
            <column name="user" order="110">
                <widget type="select" fieldname="nick" readonly="true">
                    <values source="users" fieldcode="nick" fieldtile="nick"/>
                </widget>
            </column>
            <column name="last-update" order="120">
                <widget type="datetime" fieldname="last_update" readonly="true"/>
            </column>
            <column name="last-user" order="130">
                <widget type="select" fieldname="last_nick" readonly="true">
                    <values source="users" fieldcode="nick" fieldtile="nick"/>
                </widget>
            </column>
        </group>
    </columns>
</view>
