<?xml version="1.0" encoding="utf-8"?>
<form
	addrulepath="/administrator/components/com_questionsanswers/models/rules"
	addfieldpath="/administrator/components/com_questionsanswers/models/fields"
>
	<fields name="filter">
		<field
			type="text"
			name="search"
			inputmode="search"
			label="COM_QUESTIONSANSWERS_FILTER_SEARCH"
			description="COM_QUESTIONSANSWERS_FILTER_SEARCH_QUESTIONS_AND_ANSWERS"
			hint="JSEARCH_FILTER"
		/>
		<field
			type="status"
			name="published"
			label="COM_QUESTIONSANSWERS_FILTER_PUBLISHED"
			description="COM_QUESTIONSANSWERS_FILTER_PUBLISHED_QUESTIONS_AND_ANSWERS"
			onchange="this.form.submit();"
		>
			<option value="">JOPTION_SELECT_PUBLISHED</option>
		</field>
		<field
			type="category"
			name="category_id"
			label="COM_QUESTIONSANSWERS_QUESTION_AND_ANSWER_QUESTIONS_AND_ANSWERS_CATEGORIES"
			description="JOPTION_FILTER_CATEGORY_DESC"
			multiple="true"
			class="multipleCategories"
			extension="com_questionsanswers.question_and_answer"
			onchange="this.form.submit();"
			published="0,1,2"
		/>
		<field
			type="accesslevel"
			name="access"
			label="JFIELD_ACCESS_LABEL"
			description="JFIELD_ACCESS_DESC"
			multiple="true"
			class="multipleAccessLevels"
			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.question ASC">COM_QUESTIONSANSWERS_FILTER_QUESTION_ASCENDING</option>
			<option value="a.question DESC">COM_QUESTIONSANSWERS_FILTER_QUESTION_DESCENDING</option>
			<option value="a.answer ASC">COM_QUESTIONSANSWERS_FILTER_ANSWER_ASCENDING</option>
			<option value="a.answer DESC">COM_QUESTIONSANSWERS_FILTER_ANSWER_DESCENDING</option>
			<option value="category_title ASC">COM_QUESTIONSANSWERS_FILTER_QUESTIONS_AND_ANSWERS_CATEGORIES_ASCENDING</option>
			<option value="category_title DESC">COM_QUESTIONSANSWERS_FILTER_QUESTIONS_AND_ANSWERS_CATEGORIES_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>