<xf:if is="in_array('users', $steps)">
	<h3 class="block-formSectionHeader">{{ phrase('users') }}</h3>
	<xf:macro id="import_macros::step_users_config" arg-config="{$stepConfig.users}" />

	<xf:if is="$stepConfig.users.server_avatar_path">
		<xf:textboxrow label="{{ phrase('xfi_avatar_gallery_directory') }}"
			name="step_config[users][server_avatar_path]"
			explain="{{ phrase('xfi_avatar_gallery_directory_explain') }}"
			value="{$stepConfig.users.server_avatar_path}" />
	</xf:if>

	<xf:if is="$stepConfig.users.avatar_path">
		<xf:textboxrow label="{{ phrase('xfi_avatar_uploads_directory') }}"
			name="step_config[users][avatar_path]"
			explain="{{ phrase('xfi_avatar_uploads_directory_explain') }}"
			value="{$stepConfig.users.avatar_path}" />
	</xf:if>
</xf:if>

<xf:if is="in_array('attachments', $steps)">
	<h3 class="block-formSectionHeader">{{ phrase('attachments') }}</h3>

	<xf:formrow rowtype="input"
		label="{{ phrase('xfi_attachment_directories') }}"
		explain="{{ phrase('xfi_attachment_directories_explain') }}">

		<xf:set var="$lastCounter" value="{{ array_keys($stepConfig.attachments.attach_paths)|last ?: 0 }}" />

		<ul class="inputList">
			<xf:foreach loop="$stepConfig.attachments.attach_paths" key="$folderId" value="$path">
				<li class="u-inputSpacer">
					<xf:textbox name="step_config[attachments][attach_paths][{$folderId}]" value="{$path}" />
				</li>
			</xf:foreach>

			<li data-xf-init="field-adder" data-increment-format="step_config[attachments][attach_paths][{counter}]">
				<xf:textbox name="step_config[attachments][attach_paths][{{ $lastCounter + 1 }}]" value="" />
			</li>
		</ul>
	</xf:formrow>
</xf:if>