<?xml version="1.0" encoding="utf-8"?>
<form>
	<fields name="assignments">
		<!-- Single -->
		<fieldset name="single">
			<fields name="jbusinessdirectorybusinesssingle">
				<field name="assignment_state" type="assignmentselection" 
					label="GSD_BUSINESS"
					description="PLG_GSD_JBUSINESSDIRECTORY_ASSIGN_BUSINESS_DESC"
				/>
				<field name="selection" type="componentitems" 
					label="NR_SELECTION" 
					description="PLG_GSD_JBUSINESSDIRECTORY_ASSIGN_BUSINESS_SELECTION_DESC"
					multiple="true"
					table="jbusinessdirectory_companies"
					column_id="id"
					column_title="name"
					column_state="state"
				/>
			</fields>
    	</fieldset>
		<!-- Category -->
		<fieldset name="categories">
			<fields name="jbusinessdirectorybusinesscategory">
				<field name="assignment_state" type="assignmentselection"
					label="PLG_GSD_JBUSINESSDIRECTORY_BUSINESS_CATEGORY"
					description="PLG_GSD_JBUSINESSDIRECTORY_ASSIGN_CATEGORY_DESC"
				/>
				<field name="selection" type="nrjbusinessdirectorycategories" 
					label="NR_SELECTION" 
					description="NR_CATEGORIES_DESC"
					multiple="true" 
					default=""
				/>
				<fields name="params">
					<field name="inc_children" type="list"
						label="NR_ALSO_ON_CHILD_ITEMS"
						description="NR_ALSO_ON_CHILD_ITEMS_DESC"
						class="input-medium"
						default="0">
						<option value="0">JNO</option>
						<option value="1">JYES</option>
						<option value="2">NR_ONLY</option>
					</field>
				</fields>
			</fields>
    	</fieldset>
	</fields>
</form>