<?xml version="1.0" encoding="utf-8"?>
<form
	addrulepath="/administrator/components/com_componentbuilder/models/rules"
	addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
	<fields name="filter">
		<field
			type="text"
			name="search"
			inputmode="search"
			label="COM_COMPONENTBUILDER_FILTER_SEARCH"
			description="COM_COMPONENTBUILDER_FILTER_SEARCH_HELP_DOCUMENTS"
			hint="JSEARCH_FILTER"
		/>
		<field
			type="status"
			name="published"
			label="COM_COMPONENTBUILDER_FILTER_PUBLISHED"
			description="COM_COMPONENTBUILDER_FILTER_PUBLISHED_HELP_DOCUMENTS"
			onchange="this.form.submit();"
		>
			<option value="">JOPTION_SELECT_PUBLISHED</option>
		</field>
		<field
			type="helpdocumentsfiltertype"
			name="type"
			label="COM_COMPONENTBUILDER_HELP_DOCUMENT_TYPE_LABEL"
			multiple="false"
			onchange="this.form.submit();"
		/>
		<field
			type="helpdocumentsfilterlocation"
			name="location"
			label="COM_COMPONENTBUILDER_HELP_DOCUMENT_LOCATION_LABEL"
			multiple="false"
			onchange="this.form.submit();"
		/>
		<field
			type="adminviewfolderlist"
			name="admin_view"
			label="COM_COMPONENTBUILDER_HELP_DOCUMENT_ADMIN_VIEW_LABEL"
			multiple="false"
			onchange="this.form.submit();"
		/>
		<field
			type="siteviewfolderlist"
			name="site_view"
			label="COM_COMPONENTBUILDER_HELP_DOCUMENT_SITE_VIEW_LABEL"
			multiple="false"
			onchange="this.form.submit();"
		/>
		<input type="hidden" name="form_submited" value="1"/>
	</fields>

	<fields name="list">
		<field
			name="fullordering"
			type="list"
			label="COM_CONTENT_LIST_FULL_ORDERING"
			description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
			onchange="this.form.submit();"
			default="a.id DESC"
			validate="options"
		>
			<option value="">JGLOBAL_SORT_BY</option>
			<option value="a.ordering ASC">JGRID_HEADING_ORDERING_ASC</option>
			<option value="a.ordering DESC">JGRID_HEADING_ORDERING_DESC</option>
			<option value="a.published ASC">JSTATUS_ASC</option>
			<option value="a.published DESC">JSTATUS_DESC</option>
			<option value="a.title ASC">COM_COMPONENTBUILDER_FILTER_TITLE_ASCENDING</option>
			<option value="a.title DESC">COM_COMPONENTBUILDER_FILTER_TITLE_DESCENDING</option>
			<option value="a.type ASC">COM_COMPONENTBUILDER_FILTER_TYPE_ASCENDING</option>
			<option value="a.type DESC">COM_COMPONENTBUILDER_FILTER_TYPE_DESCENDING</option>
			<option value="a.location ASC">COM_COMPONENTBUILDER_FILTER_LOCATION_ASCENDING</option>
			<option value="a.location DESC">COM_COMPONENTBUILDER_FILTER_LOCATION_DESCENDING</option>
			<option value="g. ASC">COM_COMPONENTBUILDER_FILTER_ADMIN_VIEW_ASCENDING</option>
			<option value="g. DESC">COM_COMPONENTBUILDER_FILTER_ADMIN_VIEW_DESCENDING</option>
			<option value="h. ASC">COM_COMPONENTBUILDER_FILTER_SITE_VIEW_ASCENDING</option>
			<option value="h. DESC">COM_COMPONENTBUILDER_FILTER_SITE_VIEW_DESCENDING</option>
			<option value="a.id ASC">JGRID_HEADING_ID_ASC</option>
			<option value="a.id DESC">JGRID_HEADING_ID_DESC</option>
		</field>

		<field
			name="limit"
			type="limitbox"
			label="COM_CONTENT_LIST_LIMIT"
			description="COM_CONTENT_LIST_LIMIT_DESC"
			class="input-mini"
			default="25"
			onchange="this.form.submit();"
		/>
	</fields>
</form>