<?xml version="1.0" encoding="utf-8"?><!--
 @package: SobiPro multi-directory component with content construction support

 @author
 Name: Sigrid Suski & Radek Suski, Sigsiu.NET GmbH
 Email: sobi[at]sigsiu.net
 Url: https://www.Sigsiu.NET

 @copyright Copyright (C) 2006 - 2023 Sigsiu.NET GmbH (https://www.sigsiu.net). All rights reserved.
 @license GNU/GPL Version 3
 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3
 as published by the Free Software Foundation, and under the additional terms according section 7 of GPL v3.
 See https://www.gnu.org/licenses/gpl.html and https://www.sigsiu.net/licenses.

 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 General Public License for more details.

 @modified 19 April 2023 by Sigrid Suski
-->

<definition>
	<header>
		<file type="script" filename="adm.tabs"/>
	</header>

	<toolbar title="FM.SITE_TITLE" subtitle="{'field.add':'FM.ADD_FIELD','field.edit':'FM.FIELD_FULLINFO'}" class="field button">
		<buttons icon="globe" class="btn" buttons="languages-list" label="TB.LANGUAGES"/>
		<button task="field.apply" type="apply" invert-condition="trim" colour="save">
			<button type="save" task="field.save" colour="save"/>
			<button type="duplicate" task="field.clone" colour="save"/>
		</button>
		<button type="exit" task="field.cancel" colour="exit"/>
		<button type="help" target="_blank"/>
	</toolbar>

	<body disable-menu="true">
		<div class="row">
			<div class="col-lg-12 sp-main-area">
				<message id="spctrl-message"/>
				<tabs invert-condition="trim">
					<tab label="FMN.FIELD_GENERAL">
						<fieldset>
							<field type="toggle" name="field.enabled" value="field.enabled" label="ENABLED" prefix="yes_no"/>
						</fieldset>
						<fieldset>
							<field type="text" name="field.name" value="field.name" label="FMN.FIELD_LABEL" width="5" maxlength="255" required="true" translatable="true"/>
							<field type="text" name="field.nid" value="field.nid" label="FM.ALIAS" width="5" placeholder="FM.LABEL_PLACEHOLDER_ALIAS"/>
							<field type="text" name="field.suffix" value="field.suffix" label="FM.SUFFIX" translatable="true" width="4"/>
							<field type="text" name="field.cssClass" value="field.cssClass" label="FM.CSS_CLASS" width="6"/>
							<field type="textarea" name="field.notice" value="field.notice" label="FM.NOTICES" editor="false" width="8" rows="3" style=""/>
							<field type="text" name="field.defaultValue" value="field.defaultValue" label="FM.DEFAULT_VALUE" width="4"/>
						</fieldset>
						<fieldset label="FMN.FIELD_GENERAL_URL">
							<field type="toggle" name="field.validateUrl" value="field.validateUrl" label="FMN.URL.VALIDATE_URL" prefix="yes_no"/>
							<field type="textarea" name="field.allowedProtocols" value="field.allowedProtocols" label="FMN.URL.ALLOWED_PROTO" width="6" rows="2" style=""/>
						</fieldset>
						<fieldset label="FM.FIELD_TYPE">
							<field type="output" value="type" label="FMN.FIELD_TYPE" class="badge rounded-pill bg-secondary"/>
							<field type="output" value="field.version" label="VERSION" class="badge rounded-pill bg-secondary"/>
						</fieldset>

						<legend class="text-muted small">
							<param icon="fas fa-star dk-sup" value="ENTRY_REQUIRED_MESSAGE" parse="true"/>
							<param icon="fas fa-globe dk-sup" condition="multilingual" value="ENTRY_TRANSLATABLE_MESSAGE" parse="true"/>
						</legend>
					</tab>

					<tab label="FMN.FIELD_ENTRYINPUT">
						<fieldset>
							<field type="select" name="field.bsWidth" selected="field.bsWidth" label="FMN.FIELD_WIDTH" width="2">
								<values>
									<option value="1" label="1"/>
									<option value="2" label="2"/>
									<option value="3" label="3"/>
									<option value="4" label="4"/>
									<option value="5" label="5"/>
									<option value="6" label="6"/>
									<option value="7" label="7"/>
									<option value="8" label="8"/>
									<option value="9" label="9"/>
									<option value="10" label="10"/>
									<option value="11" label="11"/>
									<option value="12" label="12"/>
								</values>
							</field>
							<field type="text" name="field.maxLength" value="field.maxLength" label="FM.MAX_LENGTH" maxlength="10" width="2">
								<add where="after">
									<call function="Sobi::Txt">
										<param>FMN.LENGTH_CHAR</param>
									</call>
								</add>
							</field>
							<field type="textarea" name="field.description" value="field.description" label="FM.DESCRIPTION" editor="false" width="8" rows="4" style=""
							       translatable="true"/>
							<field type="select" label="TP.CONFIG.ENTRY_HELPPOSITION" name="field.helpposition" selected="field.helpposition" width="3">
								<values>
									<option value="popup" label="TP.CONFIG.ENTRY_HELPPOSITION_POPUP"/>
									<option value="above" label="TP.CONFIG.ENTRY_HELPPOSITION_ABOVE"/>
									<option value="below" label="TP.CONFIG.ENTRY_HELPPOSITION_BELOW"/>
									<option value="right" label="TP.CONFIG.ENTRY_HELPPOSITION_RIGHT"/>
								</values>
							</field>
							<field type="toggle" name="field.showEditLabel" value="field.showEditLabel" label="FM.SHOW_LABEL" prefix="yes_no"/>
							<field type="toggle" name="field.labelAsPlaceholder" value="field.labelAsPlaceholder" label="FM.SHOW_PLACEHOLDER" prefix="yes_no"/>
							<field type="text" name="field.cssClassEdit" value="field.cssClassEdit" label="FM.CSS_CLASS" width="6"/>
							<field invert-condition="category-field" type="toggle" name="field.adminField" value="field.adminField" label="FMN.ADM_FIELD" prefix="yes_no"/>
							<field invert-condition="category-field" type="toggle" name="field.required" value="field.required" label="FMN.IS_REQUIRED" prefix="yes_no"/>
							<field type="select" name="field.filter" values="filters" label="FMN.URL.TITLE_FILTER" multi="false" selected="field.filter" width="5"/>
						</fieldset>
						<fieldset label="FMN.FIELD_ENTRYINPUT_URLTITLE">
							<field type="text" name="field.labelsLabel" value="field.labelsLabel" label="FMN.URL.LABEL_TITLE" maxlength="150" width="4" translatable="true"/>
							<field type="toggle" name="field.ownLabel" value="field.ownLabel" label="FMN.URL.OWN_TITLE" prefix="yes_no"/>
							<field type="toggle" name="field.floatOwnLabel" value="field.floatOwnLabel" label="FM.FIELD.TITLE_FLOAT+*" prefix="yes_no"/>
							<field type="text" name="field.labelMaxLength" value="field.labelMaxLength" label="FMN.URL.TITLE_MAX_LENGTH" maxlength="10" width="2">
								<add where="after">
									<call function="Sobi::Txt">
										<param>FMN.LENGTH_CHAR</param>
									</call>
								</add>
							</field>
						</fieldset>
						<fieldset invert-condition="category-field" label="FMN.FIELD_ENTRYINPUT_EDITS">
							<field type="toggle" name="field.editable" value="field.editable" label="FMN.IS_EDITABLE" prefix="yes_no"/>
							<field type="text" name="field.editLimit" value="field.editLimit" label="FM.EDIT_LIMITS" width="2"/>
						</fieldset>
						<fieldset invert-condition="category-field" label="FMN.FIELD_ENTRYINPUT_PAYMENT">
							<field type="toggle" name="field.isFree" value="field.isFree" label="FM.FOR_FREE" prefix="yes_no"/>
							<field type="text" name="field.fee" value="field.fee" label="FMN.FIELD_FEE" width="2">
								<add where="after">
									<call function="Sobi::Cfg">
										<param>payments.currency</param>
										<param>EUR</param>
									</call>
								</add>
							</field>
						</fieldset>

						<legend class="text-muted small">
							<param value="FM.FIELD.HINT.FLOAT" parse="true"/>
							<param icon="fas fa-globe dk-sup" condition="multilingual" value="ENTRY_TRANSLATABLE_MESSAGE" parse="true"/>
						</legend>
					</tab>

					<tab label="FMN.FIELD_ENTRYVIEW">
						<fieldset>
							<field invert-condition="category-field" type="select" name="field.showIn" selected="field.showIn" label="FMN.AVAILABLE_IN" width="3">
								<values>
									<option value="both" label="FM.BOTH_OPT"/>
									<option value="details" label="FM.DETAILS_VIEW_OPT"/>
									<option value="vcard" label="FM.V_CARD_OPT"/>
									<option value="hidden" label="FM.HIDDEN_OPTION"/>
								</values>
							</field>
							<field type="text" name="field.itemprop" label="FMN.ITEMPROP" width="4"/>
							<field type="toggle" name="field.withLabel" value="field.withLabel" label="FM.SHOW_LABEL" prefix="yes_no"/>
							<field type="text" name="field.cssClassView" value="field.cssClassView" label="FM.CSS_CLASS" width="6"/>
							<field type="toggle" name="field.noFollow" value="field.noFollow" label="FM.URL.NOFOLLOW" prefix="yes_no"/>
							<field type="toggle" name="field.newWindow" value="field.newWindow" label="FM.URL.NEW_WINDOW" prefix="yes_no"/>
						</fieldset>

						<fieldset label="FMN.FIELD_ENTRYINPUT_BUTTONSTYLE">
							<field type="text" name="field.cssButtonClass" value="field.cssButtonClass" label="FMN.FIELD_ENTRYINPUT_BUTTON_CSS_CLASS" width="6"/>
							<field type="toggle" name="field.useIcon" value="field.useIcon" label="FMN.FIELD_ENTRYINPUT_ICON_USE" prefix="yes_no"/>
							<field type="text" name="field.cssIconClass" value="field.cssIconClass" label="FMN.FIELD_ENTRYINPUT_ICON_CSS_CLASS" width="6"/>
						</fieldset>

						<fieldset label="FMN.FIELD_ENTRYINPUT_URLCOUNTER">
							<field type="toggle" name="field.countClicks" value="field.countClicks" label="FM.URL.COUNT_CLICKS" prefix="yes_no"/>
							<field type="toggle" name="field.deleteClicks" value="field.deleteClicks" label="FM.URL.DELETE_CLICKS" prefix="yes_no"/>
							<field type="toggle" name="field.counterToLabel" value="field.counterToLabel" label="FM.URL.COUNTER_TO_LABEL" prefix="yes_no"/>
						</fieldset>
					</tab>
				</tabs>
				<div class="sp-feature" condition="trim">
					<file filename="about.information.info" type="html" translatable="true" start-path="administrator"/>
				</div>
			</div>
		</div>
	</body>

	<config>
		<action value="index.php"/>
		<hidden>
			<field name="option" default="com_sobipro"/>
			<field name="field.fieldType" default="button"/>
			<field name="sp-language" default=""/>
			<field name="task" default=""/>
			<field name="method" default="xhr"/>
			<field name="format" default="raw"/>
		</hidden>
	</config>
</definition>
