<?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 - 2022 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 01 March 2022 by Sigrid Suski
-->

<definition>
	<header>
		<file type="script" filename="adm.tabs"/>
	</header>
	<toolbar title="{'acl.add':'ACL_FORM_SITE_TITLE_ADD','acl.edit':'ACL_FORM_SITE_TITLE_EDIT'}" class="acl edit">
		<button type="apply" task="acl.apply" colour="save">
			<button type="save" task="acl.save" colour="save"/>
		</button>
		<button type="exit" task="acl.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>
					<tab label="ACL_PERMISSION_TAB">
						<fieldset>
							<field type="text" name="set.name" label="ACL.RULE_NAME" width="5" required="true"/>
							<field type="text" name="set.nid" label="ACL.ALIAS" placeholder="FM.RULE_PLACEHOLDER_ALIAS" width="5"/>
							<field type="textarea" name="set.note" label="ACL.NOTES" editor="false" width="8" rows="2" style=""/>
							<field type="select" name="set.groups" values="groups" label="ACL.AFFECTED_USER_GROUPS" multi="true" selected="set.groups" width="4" size="10"
							       required="true"/>
							<field type="select" name="set.sections" values="sections" label="ACL.AFFECTED_SECTIONS" multi="true" selected="set.sections" width="5" size="8"
							       required="true"/>
							<field type="select" name="set.permissions" values="permissions" label="ACL.FRONTEND_PERMISSIONS" multi="true" selected="set.permissions" width="4"
							       size="28" required="false"/>
							<field type="select" name="set.adm_permissions" values="adm_permissions" label="ACL.BACKEND_PERMISSIONS" multi="true" selected="set.permissions"
							       width="4" size="17" required="false"/>
						</fieldset>

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

					<tab label="ACL_PUBLISHING">
						<fieldset>
							<field type="toggle" name="set.state" label="ACL_ENABLED" prefix="yes_no"/>
							<field type="datepicker" label="VALID_SINCE" name="set.validSince" width="4" dateFormat="cfg:publishing_format" icon="unlock"/>
							<field type="datepicker" label="VALID_UNTIL" name="set.validUntil" width="4" dateFormat="cfg:publishing_format" icon="lock"/>
						</fieldset>
					</tab>
				</tabs>
			</div>
		</div>
	</body>
	<config>
		<action value="index.php"/>
		<hidden>
			<field name="option" default="com_sobipro"/>
			<field name="task" default=""/>
			<field name="method" default="xhr"/>
			<field name="rid" default=""/>
		</hidden>
	</config>
</definition>
