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

<xf:form action="{{ link('smilies/import-form') }}" upload="true" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:radiorow name="mode" value="upload">
				<xf:option value="upload"
					label="{{ phrase('import_from_uploaded_xml_file') }}"
					hint="{{ phrase('smilie_pre_import_explain') }}">

					<xf:upload name="upload" accept=".xml" />
				</xf:option>
				<xf:if is="$smilieXmlFiles">
					<xf:option value="imported"
						label="{{ phrase('import_from_import_generated_xml') }}"
						hint="{{ phrase('import_from_import_generated_xml_explain') }}">
						<xf:select name="filename">
							<xf:options source="$smilieXmlFiles" />
						</xf:select>
					</xf:option>
				</xf:if>
				<xf:option value="directory"
					label="{{ phrase('import_from_directory_on_server') }}"
					hint="{{ phrase('smilie_pre_import_directory_explain') }}">

					<xf:textbox name="directory" placeholder="styles/default/xenforo/smilies..." />
				</xf:option>
			</xf:radiorow>
		</div>
		<xf:submitrow submit="{{ phrase('proceed...') }}" />
	</div>
</xf:form>