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

<xf:form action="{{ link('uix-sp-image-upload/upload', $styleProperty) }}"
		 class="block" upload="true" ajax="true"
		 data-xf-init="uix-image-upload">
	<div class="block-container">
		<div class="block-body">
			<xf:uploadrow name="file" accept=".gif,.jpeg,.jpg,.jpe,.png"
						  explain="{{ phrase('th_uix_sp_upload_allowed_file_types') }}"
						  label="{{ phrase('image') }}"/>
			
			<xf:checkboxrow>
				<xf:option value="1" name="custom_disk_path"
						   explain="{{ phrase('th_uix_customize_upload_path_explain') }}"
						   label="{{ phrase('th_uix_customize_upload_path:') }}">
					<xf:textbox name="path" value="{$defaultPath}"></xf:textbox>
				</xf:option>
				<xf:option value="1" name="rename_file"
						   explain="{{ phrase('th_uix_customize_file_name_explain') }}"
						   label="{{ phrase('th_uix_customize_file_name:') }}">
					<xf:textbox name="name" value="{$defaultName}"></xf:textbox>
				</xf:option>
			</xf:checkboxrow>
		</div>
		<xf:submitrow icon="upload" />
	</div>
</xf:form>