<div class="row">
	<div class="<?php echo(TWO_COL); ?>">
		<fieldset>
			<legend>Module Settings</legend>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_heading_level" class="<?php echo(LABEL_COL); ?>">Content Heading Level</label>
				<div class="<?php echo(FIELD_COL); ?>">
					<?php angularMultipleChoice("field_heading_level", "params.heading_level.value", "p", ["h1" => "H1", "h2" => "H2", "h3" => "H3", "h4" => "H4", "h5" => "H5", "h6" => "H6", "p" => "Plain"]); ?>
				</div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_module_class" class="<?php echo(LABEL_COL); ?>">Module Class</label>
				<div class="<?php echo(FIELD_COL); ?>"><input type="text" name="field_module_class" id="field_module_class" ng-model="params.module_class.value" class="form-control" /></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_category_id" class="<?php echo(LABEL_COL); ?>">Document Category</label>
				<div class="<?php echo(FIELD_COL); ?>">
					<select name="field_category_id" id="field_category_id" ng-model="params.category_id.value" class="form-control custom-select" ng-options="v.value as v.text for (k, v) in categories">
						<option value="">Any Category</option>
					</select>
				</div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_tag_ids" class="<?php echo(LABEL_COL); ?>">Tags</label>
				<div class="<?php echo(FIELD_COL); ?>"><input type="text" class="tokeninput" name="field_tag_ids" id="field_tag_ids" data-source="/ajax/get_tokens/page_tag" data-allow_new="0" data-options="{'theme': 'facebook', 'preventDuplicates': '1'}" /></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_tag_logic" class="<?php echo(LABEL_COL); ?>">Tag Logic</label>
				<div class="<?php echo(FIELD_COL); ?>">
					<?php angularMultipleChoice("field_tag_logic", "params.tag_logic.value", "OR", ["OR" => "Any tag can match", "AND" => "All tags must match"]); ?>
				</div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_per_page" class="<?php echo(LABEL_COL); ?>">Number of Results Per Page</label>
				<div class="<?php echo(FIELD_COL); ?>"><input type="number" name="field_per_page" id="field_per_page" ng-model="params.per_page.value" class="form-control" min="0" step="1" data-default="10" required /></div>
			</div>
		</fieldset>
	</div>
	<div class="<?php echo(TWO_COL); ?>">
		<fieldset>
			<legend>&nbsp;</legend>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_site_lock" class="<?php echo(LABEL_COL); ?>">Site Lock</label>
				<div class="<?php echo(FIELD_COL); ?>"><?php angularYesNo("field_site_lock", "params.site_lock.value", 1); ?></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_show_title" class="<?php echo(LABEL_COL); ?>">Show Title</label>
				<div class="<?php echo(FIELD_COL); ?>"><?php angularYesNo("field_show_title", "params.show_title.value", 1); ?></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_show_date" class="<?php echo(LABEL_COL); ?>">Show Date</label>
				<div class="<?php echo(FIELD_COL); ?>"><?php angularYesNo("field_show_date", "params.show_date.value", 0); ?></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_show_category" class="<?php echo(LABEL_COL); ?>">Show Category</label>
				<div class="<?php echo(FIELD_COL); ?>"><?php angularYesNo("field_show_category", "params.show_category.value", 1); ?></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_show_icons" class="<?php echo(LABEL_COL); ?>">Show Icons</label>
				<div class="<?php echo(FIELD_COL); ?>"><?php angularYesNo("field_show_icons", "params.show_icons.value", 1); ?></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_show_text" class="<?php echo(LABEL_COL); ?>">Show Description</label>
				<div class="<?php echo(FIELD_COL); ?>"><?php angularYesNo("field_show_text", "params.show_text.value", 1); ?></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>" ng-show="params.show_text.value == 1">
				<label for="field_character_limit" class="<?php echo(LABEL_COL); ?>">Description Limit</label>
				<div class="<?php echo(FIELD_COL); ?>"><input type="number" name="field_character_limit" id="field_character_limit" ng-model="params.character_limit.value" class="form-control" min="0" step="1" data-default="300" /></div> characters
			</div>
		</fieldset>
	</div>
</div>