<?xml version="1.0" encoding="utf-8"?>
<config addfieldpath="/plugins/system/nnframework/fields">
	<fieldset name="color">
		<field name="color" type="color" control="simple" split="4" default="" label="AMM_COLOR" description="AMM_COLOR_DESC" />
	</fieldset>

	<fieldset name="hideempty">
		<field name="hideempty" type="radio" class="btn-group btn-group-yesno" default="0" label="AMM_HIDE_IF_EMPTY" description="AMM_HIDE_IF_EMPTY_DESC">
			<option value="0">JNO</option>
			<option value="1">JYES</option>
		</field>
	</fieldset>


	<fieldset name="assignments">
		<field name="@block_assignments" type="nn_block" var1="AMM_MODULE" description="NN_ASSIGNMENTS_DESC" />
	</fieldset>

	<fieldset name="mirror_module">
		<field name="mirror_module" type="radio" class="btn-group" default="0" label="AMM_MIRROR_MODULE" description="AMM_MIRROR_MODULE_DESC">
			<option value="0">JNO</option>
			<option value="1">JYES</option>
			<option value="2">AMM_REVERSE</option>
		</field>
		<field name="@toggler_mirror_a" type="nn_toggler" param="mirror_module" value="1,2" />
		<field name="mirror_moduleid" type="nn_modules" size="1" showid="1" showtype="1" default="" label="AMM_MODULE" description="AMM_MODULE_DESC" />
		<field name="@toggler_mirror_b" type="nn_toggler" />
	</fieldset>

	<fieldset name="match_method">
		<field name="match_method" type="radio" class="btn-group" default="and" label="NN_MATCHING_METHOD" description="NN_MATCHING_METHOD_DESC">
			<option value="and">NN_AND</option>
			<option value="or">NN_OR</option>
		</field>
		<field name="@toggler_match_1a" type="nn_toggler" param="match_method" value="and" />
		<field name="@block_and" type="nn_block" class="alert-info" description="NN_AND_DESC" />
		<field name="@toggler_match_1b" type="nn_toggler" />
		<field name="@toggler_match_2a" type="nn_toggler" param="match_method" value="or" />
		<field name="@block_or" type="nn_block" class="alert-info" description="NN_OR_DESC" />
		<field name="@toggler_match_2b" type="nn_toggler" />
	</fieldset>

	<fieldset name="show_assignments">
		<field name="show_assignments" type="radio" class="btn-group" default="1" label="NN_SHOW_ASSIGNMENTS" description="NN_SHOW_ASSIGNMENTS_DESC">
			<option value="1">NN_ALL</option>
			<option value="2">NN_SELECTED</option>
		</field>
		<field name="@toggler_show_assignments_1a" type="nn_toggler" param="show_assignments" value="2" />
		<field name="@block_show_assignments" type="nn_block" class="alert-info" description="NN_SHOW_ASSIGNMENTS_SELECTED_DESC" />
		<field name="@toggler_show_assignments_1b" type="nn_toggler" />
	</fieldset>

	<fieldset name="assignto_menuitems">
		<field name="assignto_menuitems" type="nn_assignmentselection" label="NN_MENU_ITEMS" />
		<field name="assignto_menuitems_selection" type="nn_menuitems" multiple="true" default="" label="NN_SELECTION" description="NN_MENU_ITEMS_DESC" />
		<field name="assignto_menuitems_inc_children" type="radio" class="btn-group btn-group-yesno" default="0" label="NN_ALSO_ON_CHILD_ITEMS" description="NN_ALSO_ON_CHILD_ITEMS_DESC">
			<option value="0">JNO</option>
			<option value="1">JYES</option>
			<option value="2">NN_ONLY</option>
		</field>
		<field name="assignto_menuitems_inc_noitemid" type="radio" class="btn-group btn-group-yesno" default="0" label="NN_INCLUDE_NO_ITEMID" description="NN_INCLUDE_NO_ITEMID_DESC">
			<option value="0">JNO</option>
			<option value="1">JYES</option>
		</field>
		<field name="@assignto_menuitems" type="nn_assignmentselection" />
	</fieldset>

	<fieldset name="assignto_homepage">
		<field name="assignto_homepage" type="nn_assignmentselection" showclose="1" label="NN_HOME_PAGE" />
		<field name="@text_homepage" type="nn_plaintext" label="NN_HOME_PAGE_DESC" />
		<field name="@assignto_homepage" type="nn_assignmentselection" />
	</fieldset>

	<fieldset name="assignto_date">
		<field name="@toggler_group_date_a" type="nn_toggler" param="show_assignments|assignto_date|assignto_seasons|assignto_months|assignto_days|assignto_time" value="1|1,2|1,2|1,2|1,2|1,2" />
		<field name="@block_group_date_a" type="nn_block" start="1" label="NN_DATE_TIME" />

		<field name="@toggler_group_date_1a" type="nn_toggler" param="assignto_date|assignto_seasons|assignto_months|assignto_days|assignto_time" value="1,2|1,2|1,2|1,2|1,2" />
		<field name="@text_group_date_1" type="nn_plaintext" label="NN_DATE_TIME_DESC" />
		<field name="@text_group_date_2" type="nn_datetime" format="Y-m-d H:i" label="NN_CURRENT_DATE" />
		<field name="@toggler_group_date_1b" type="nn_toggler" />

		<field name="assignto_date" type="nn_assignmentselection" showclose="1" label="NN_DATE" />
		<field name="assignto_date_publish_up" type="calendar" filter="user_utc" format="%Y-%m-%d 00:00" default="0000-00-00 00:00" label="NN_START_PUBLISHING" description="NN_START_PUBLISHING_DESC" />
		<field name="assignto_date_publish_down" type="calendar" filter="user_utc" format="%Y-%m-%d 00:00" default="0000-00-00 00:00" label="NN_FINISH_PUBLISHING" description="NN_FINISH_PUBLISHING_DESC" />
		<field name="assignto_date_recurring" type="radio" class="btn-group btn-group-yesno" default="0" label="NN_DATE_RECURRING" description="NN_DATE_RECURRING_DESC">
			<option value="0">JNO</option>
			<option value="1">JYES</option>
		</field>
		<field name="@assignto_date" type="nn_assignmentselection" />


		<field name="@block_group_date_b" type="nn_block" end="1" />
		<field name="@toggler_group_date_b" type="nn_toggler" />
	</fieldset>

	<fieldset name="assignto_groupusers">
		<field name="@toggler_group_users_a" type="nn_toggler" param="show_assignments|assignto_usergrouplevels|assignto_users" value="1|1,2|1,2" />
		<field name="@block_group_users_a" type="nn_block" start="1" label="NN_USERS" />

		<field name="@toggler_usergrouplevels_a" type="nn_toggler" param="show_usergrouplevels" value="1" />
		<field name="assignto_usergrouplevels" type="nn_assignmentselection" showclose="1" label="NN_USER_GROUP_LEVELS" />
		<field name="assignto_usergrouplevels_selection" type="nn_grouplevel" multiple="true" notregistered="1" default="" label="NN_SELECTION" description="NN_USER_GROUPS_DESC" />
		<field name="@assignto_usergrouplevels" type="nn_assignmentselection" />
		<field name="@toggler_usergrouplevels_b" type="nn_toggler" />


		<field name="@block_group_users_b" type="nn_block" end="1" />
		<field name="@toggler_group_users_b" type="nn_toggler" />
	</fieldset>

	<fieldset name="assignto_languages">
		<field name="assignto_languages" type="nn_assignmentselection" showclose="1" label="NN_LANGUAGES" />
		<field name="assignto_languages_selection" type="nn_languages" multiple="true" default="" label="NN_SELECTION" description="NN_LANGUAGES_DESC" />
		<field name="@assignto_languages" type="nn_assignmentselection" />
	</fieldset>


	<fieldset name="assignto_templates">
		<field name="assignto_templates" type="nn_assignmentselection" showclose="1" label="NN_TEMPLATES" />
		<field name="assignto_templates_selection" type="nn_templates" multiple="true" default="" label="NN_SELECTION" description="NN_TEMPLATES_DESC" />
		<field name="@assignto_templates" type="nn_assignmentselection" />
	</fieldset>

	<fieldset name="assignto_urls">
		<field name="assignto_urls" type="nn_assignmentselection" showclose="1" label="NN_URL" />
		<field name="assignto_urls_selection" type="nn_textareaplus" texttype="regex" default="" label="NN_URL_PARTS" description="NN_URL_PARTS_DESC" />
		<field name="@text_urls" type="nn_plaintext" label="NN_URL_PARTS_DESC" />
		<field name="assignto_urls_regex" type="radio" class="btn-group btn-group-yesno" default="0" label="NN_REGULAR_EXPRESSIONS" description="NN_REGULAR_EXPRESSIONS_DESC">
			<option value="0">JNO</option>
			<option value="1">JYES</option>
		</field>
		<field name="@toggler_urls_regex_a" type="nn_toggler" param="assignto_urls_regex" value="1" />
		<field name="@block_urls_regex" type="nn_block" class="alert-danger" description="NN_URL_PARTS_REGEX" />
		<field name="@toggler_urls_regex_b" type="nn_toggler" />
		<field name="@assignto_urls" type="nn_assignmentselection" />
	</fieldset>

	<fieldset name="assignto_os">
		<field name="assignto_os" type="nn_assignmentselection" showclose="1" label="NN_OS" />
		<field name="@text_os" type="nn_plaintext" label="NN_OS_DESC" />
		<field name="assignto_os_selection" type="nn_agents" group="os" multiple="true" default="" label="NN_SELECTION" description="NN_OS_DESC" />
		<field name="@assignto_os" type="nn_assignmentselection" />
	</fieldset>

	<fieldset name="assignto_browsers">
		<field name="assignto_browsers" type="nn_assignmentselection" showclose="1" label="NN_BROWSERS" />
		<field name="@text_browsers" type="nn_plaintext" label="NN_BROWSERS_DESC" />
		<field name="assignto_browsers_selection" type="nn_agents" group="browsers" multiple="true" default="" label="NN_BROWSERS" description="NN_BROWSERS_DESC" />
		<field name="assignto_mobile_selection" type="nn_agents" group="mobile" multiple="true" default="" label="NN_MOBILE_BROWSERS" description="NN_BROWSERS_DESC" />
		<field name="@assignto_browsers" type="nn_assignmentselection" />
	</fieldset>

	<fieldset name="assignto_components">
		<field name="assignto_components" type="nn_assignmentselection" showclose="1" label="NN_COMPONENTS" />
		<field name="assignto_components_selection" type="nn_components" multiple="true" admin="0" show_content="1" default="" label="NN_SELECTION" description="NN_COMPONENTS_DESC" />
		<field name="@assignto_components" type="nn_assignmentselection" />
	</fieldset>

	<fieldset name="assignto_tags">
		<field name="assignto_tags" type="nn_assignmentselection" showclose="1" label="NN_TAGS" />
		<field name="assignto_tags_selection" type="nn_tags" multiple="true" default="" label="NN_SELECTION" description="NN_TAGS_DESC" />
		<field name="assignto_tags_inc_children" type="radio" class="btn-group btn-group-yesno" default="0" label="NN_ALSO_ON_CHILD_ITEMS" description="NN_ALSO_ON_CHILD_ITEMS_DESC">
			<option value="0">JNO</option>
			<option value="1">JYES</option>
			<option value="2">NN_ONLY</option>
		</field>
		<field name="@assignto_tags" type="nn_assignmentselection" />
	</fieldset>

	<fieldset name="assignto_content">
		<field name="@loadlanguage_content" type="nn_loadlanguage" extension="com_content.sys" />

		<field name="@toggler_content_a" type="nn_toggler" param="show_assignments|assignto_contentpagetypes|assignto_cats|assignto_articles" value="1|1,2|1,2|1,2" />
		<field name="@block_content_a" type="nn_block" start="1" label="NN_JCONTENT" />

		<field name="assignto_contentpagetypes" type="nn_assignmentselection" showclose="1" label="NN_PAGE_TYPES" />
		<field name="assignto_contentpagetypes_selection" type="list" multiple="true" default="" label="NN_SELECTION" description="NN_PAGE_TYPES_DESC">
			<option value="archive">COM_CONTENT_ARCHIVE_VIEW_DEFAULT_TITLE</option>
			<option value="article">COM_CONTENT_ARTICLE_VIEW_DEFAULT_TITLE</option>
			<option value="categories">COM_CONTENT_CATEGORIES_VIEW_DEFAULT_TITLE</option>
			<option value="categoryblog">COM_CONTENT_CATEGORY_VIEW_BLOG_TITLE</option>
			<option value="category">COM_CONTENT_CATEGORY_VIEW_DEFAULT_TITLE</option>
			<option value="featured">COM_CONTENT_FEATURED_VIEW_DEFAULT_TITLE</option>
			<option value="form">COM_CONTENT_FORM_VIEW_DEFAULT_TITLE</option>
		</field>
		<field name="@assignto_contentpagetypes" type="nn_assignmentselection" />

		<field name="assignto_cats" type="nn_assignmentselection" showclose="1" label="NN_CATEGORIES" />
		<field name="assignto_cats_selection" type="nn_content" group="categories" multiple="true" default="" label="NN_SELECTION" description="NN_CATEGORIES_DESC" />
		<field name="assignto_cats_inc_children" type="radio" class="btn-group btn-group-yesno" default="0" label="NN_ALSO_ON_CHILD_ITEMS" description="NN_ALSO_ON_CHILD_ITEMS_DESC">
			<option value="0">JNO</option>
			<option value="1">JYES</option>
			<option value="2">NN_ONLY</option>
		</field>
		<field name="assignto_cats_inc" type="nn_checkbox" default="inc_cats,inc_arts" label="NN_PAGE_TYPES" description="NN_PAGE_TYPES_DESC">
			<option value="inc_cats">NN_CATEGORIES</option>
			<option value="inc_arts">NN_ARTICLES</option>
			<option value="inc_others">NN_OTHERS</option>
		</field>
		<field name="@assignto_cats" type="nn_assignmentselection" />

		<field name="assignto_articles" type="nn_assignmentselection" showclose="1" label="NN_ARTICLES" />
		<field name="assignto_articles_selection" type="nn_content" group="items" multiple="true" default="" label="NN_SELECTION" description="NN_ARTICLES_DESC" />
		<field name="assignto_articles_keywords" type="nn_textareaplus" texttype="regex" default="" label="NN_ARTICLE_KEYWORDS" description="NN_ARTICLE_KEYWORDS_DESC" />
		<field name="@assignto_articles" type="nn_assignmentselection" />

		<field name="@block_content_b" type="nn_block" end="1" />
		<field name="@toggler_content_b" type="nn_toggler" />
	</fieldset>

</config>
