<xf:title>{{ phrase('configure_importer:') }} {$title}</xf:title>

<div class="js-importConfigForm">

	<xf:if is="$isCoreImporter AND $canRetainIds">
		<div class="blockMessage blockMessage--warning blockMessage--iconic">
			{{ phrase('to_avoid_unexpected_user_merges_ensure_current_user_unique_name_email', {'link': link('users/edit', $xf.visitor)}) }}
		</div>
	</xf:if>

	<xf:form action="{{ link('import/step-config') }}" class="block"
		ajax="true" data-replace=".js-importConfigForm">

		<div class="block-container">
			<div class="block-body">
				<xf:checkboxrow name="steps[]" label="{{ phrase('data_to_import') }}" listclass="data">
					<xf:foreach loop="$availableSteps" key="$stepId" value="$stepInfo">
						<xf:option value="{$stepId}" selected="1">{$stepInfo.title}</xf:option>
					</xf:foreach>

					<xf:explain>
						{{ phrase('some_steps_may_require_other_steps_as_prerequisite') }}
					</xf:explain>

					<xf:hint>
						<br />
						<xf:checkbox standalone="true">
							<xf:option check-all=".data">{{ phrase('select_all') }}</xf:option>
						</xf:checkbox>
					</xf:hint>
				</xf:checkboxrow>

				<xf:checkboxrow label="{{ phrase('content_ids') }}">
					<xf:if is="$canRetainIds">
						<xf:option name="retain_ids" selected="1">
							<xf:label>{{ phrase('retain_content_ids') }}</xf:label>
							<xf:hint>
								{{ phrase('if_selected_same_id_used_in_xenforo_as_source_db') }}
								<xf:if is="$isCoreImporter"><strong>{{ phrase('note_if_selected_user_1_from_source_merged_into_user_1_xf') }}</strong></xf:if>
							</xf:hint>
						</xf:option>
					<xf:else />
						<xf:option disabled="disabled">
							<xf:label>{{ phrase('retain_content_ids') }}</xf:label>
							<xf:hint>{{ phrase('content_ids_cannot_be_retained_message') }}</xf:hint>
						</xf:option>
					</xf:if>
				</xf:checkboxrow>

				<xf:textboxrow name="log_table"
					hint="{{ phrase('required') }}"
					required="required"
					value="{$logTable}"
					label="{{ phrase('import_log_table_name') }}"
					explain="{{ phrase('import_log_table_name_explain') }}" />
			</div>
			<xf:submitrow submit="{{ phrase('continue...') }}" />
		</div>

		<xf:hiddenval name="config">{$baseConfig|json}</xf:hiddenval>
		<xf:hiddenval name="importer">{$importerId}</xf:hiddenval>
	</xf:form>
</div>