<div class="row">
	<div class="<?php echo(TWO_COL); ?>">
		<div class="<?php echo(FIELD_COL); ?>"><input type="hidden" name="field_page_id" id="field_page_id" ng-value="params.page_id.value" /></div>

		<fieldset>
			<legend>Page Settings</legend>

			<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_google_api_key" class="<?php echo(LABEL_COL); ?>">Google API Key</label>
				<div class="<?php echo(FIELD_COL); ?>"><input type="text" name="field_google_api_key" id="field_google_api_key" ng-model="params.google_api_key.value" class="form-control" /></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_display" class="<?php echo(LABEL_COL); ?>">Primary Display</label>
				<div class="<?php echo(FIELD_COL); ?>">
					<?php angularMultipleChoice("field_display", "params.display.value", "normal", ["normal" => "Businesses", "reverse" => "Contacts"]); ?>
				</div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_extra_fields" class="<?php echo(LABEL_COL); ?>">Extra Fields (field=label - one per line)</label>
				<div class="<?php echo(FIELD_COL); ?>"><textarea name="field_extra_fields" id="field_extra_fields" ng-model="params.extra_fields.value" class="form-control"></textarea></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_allow_export" class="<?php echo(LABEL_COL); ?>">Allow Directory Export</label>
				<div class="<?php echo(FIELD_COL); ?>"><?php angularYesNo("field_allow_export", "params.allow_export.value", 1); ?></div>
			</div>
		</fieldset>
	</div>

	<div class="<?php echo(TWO_COL); ?>">
		<fieldset>
			<legend>Image Sizes</legend>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_max_width_category" class="<?php echo(LABEL_COL); ?>">Category Image Max Width</label>
				<div class="<?php echo(FIELD_COL); ?>"><input type="number" name="field_max_width_category" id="field_max_width_category" ng-model="params.max_width_category.value" class="form-control" min="1" step="1" data-default="400" /></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_max_height_category" class="<?php echo(LABEL_COL); ?>">Category Image Max Height</label>
				<div class="<?php echo(FIELD_COL); ?>"><input type="number" name="field_max_height_category" id="field_max_height_category" ng-model="params.max_height_category.value" class="form-control" min="1" step="1" data-default="300" /></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_max_width_vcard" class="<?php echo(LABEL_COL); ?>">vCard Image Max Width</label>
				<div class="<?php echo(FIELD_COL); ?>"><input type="number" name="field_max_width_vcard" id="field_max_width_vcard" ng-model="params.max_width_vcard.value" class="form-control" min="1" step="1" data-default="400" /></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_max_height_vcard" class="<?php echo(LABEL_COL); ?>">vCard Image Max Height</label>
				<div class="<?php echo(FIELD_COL); ?>"><input type="number" name="field_max_height_vcard" id="field_max_height_vcard" ng-model="params.max_height_vcard.value" class="form-control" min="1" step="1" data-default="300" /></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_max_width_listing" class="<?php echo(LABEL_COL); ?>">Listing Image Max Width</label>
				<div class="<?php echo(FIELD_COL); ?>"><input type="number" name="field_max_width_listing" id="field_max_width_listing" ng-model="params.max_width_listing.value" class="form-control" min="1" step="1" data-default="400" /></div>
			</div>

			<div class="<?php echo(FORM_ROW); ?>">
				<label for="field_max_height_listing" class="<?php echo(LABEL_COL); ?>">Listing Image Max Height</label>
				<div class="<?php echo(FIELD_COL); ?>"><input type="number" name="field_max_height_listing" id="field_max_height_listing" ng-model="params.max_height_listing.value" class="form-control" min="1" step="1" data-default="300" /></div>
			</div>
		</fieldset>
	</div>
</div>
