<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of FacturaScripts
 * Copyright (C) 2017-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 Artex Trading sa     <jcuello@artextrading.com>
 * @author Carlos García Gómez  <carlos@facturascripts.com>
-->
<view>
    <columns>
        <group name="email" icon="fa-solid fa-envelope" numcolumns="12">
            <column name="name" display="none" order="0">
                <widget type="text" fieldname="name" readonly="true" required="true"/>
            </column>
            <column name="email" order="100">
                <widget type="text" fieldname="email" icon="fa-solid fa-envelope"/>
            </column>
            <column name="password" order="110">
                <widget type="password" fieldname="password" icon="fa-solid fa-key"/>
            </column>
            <column name="logo" order="120">
                <widget type="library" fieldname="idlogo" icon="fa-solid fa-image" onclick="EditAttachedFile" accept=".jpg,.jpeg,.png"/>
            </column>
            <column name="email-signature" numcolumns="12" order="130">
                <widget type="textarea" fieldname="signature"/>
            </column>
        </group>
        <group name="advanced" title="advanced" icon="fa-solid fa-server" numcolumns="12" valign="bottom">
            <column name="user" numcolumns="3" order="100">
                <widget type="text" fieldname="user"/>
            </column>
            <column name="host" numcolumns="4" order="110">
                <widget type="text" fieldname="host" icon="fa-solid fa-server"/>
            </column>
            <column name="port" numcolumns="2" order="120">
                <widget type="number" fieldname="port" min="0"/>
            </column>
            <column name="enc" title="encrypt" numcolumns="3" order="130">
                <widget type="select" fieldname="enc" icon="fa-solid fa-shield-alt">
                    <values title="SSL">ssl</values>
                    <values title="TLS">tls</values>
                </widget>
            </column>
            <column name="mailer" numcolumns="3" order="140">
                <widget type="select" fieldname="mailer" required="true">
                    <values/>
                </widget>
            </column>
            <column name="authentication" numcolumns="3" order="150">
                <widget type="select" fieldname="authtype">
                    <values title="CRAM-MD5">CRAM-MD5</values>
                    <values title="LOGIN">LOGIN</values>
                    <values title="PLAIN">PLAIN</values>
                    <values title="XOAUTH2">XOAUTH2</values>
                </widget>
            </column>
            <column name="lowsecure" title="low-security" order="160">
                <widget type="checkbox" fieldname="lowsecure"/>
            </column>
        </group>
        <group name="reply" title="reply" icon="fa-solid fa-reply" numcolumns="3">
            <column name="replytouseremail" title="email-replies" order="100">
                <widget type="select" fieldname="replytouseremail" required="true" translate="true">
                    <values title="default-to-user-email">1</values>
                    <values title="default-to-config-email">0</values>
                    <values title="always-to-config-email">-1</values>
                </widget>
            </column>
        </group>
        <group name="copy" title="email-cc" icon="fa-solid fa-mail-bulk" numcolumns="9">
            <column name="email-cc" description="accepts-emails-commas" order="100">
                <widget type="text" fieldname="emailcc" icon="fa-solid fa-envelope"/>
            </column>
            <column name="email-bcc" description="accepts-emails-commas" order="110">
                <widget type="text" fieldname="emailbcc" icon="fa-solid fa-envelope"/>
            </column>
        </group>
    </columns>
</view>
