<xf:title>{{ phrase('change_thread_type:') }} {{ prefix('thread', $thread, 'escaped') }}{$thread.title}</xf:title>
<xf:h1>{{ phrase('change_thread_type:') }} {{ prefix('thread', $thread) }}{$thread.title}</xf:h1>

<xf:breadcrumb source="$thread.getBreadcrumbs()" />

<xf:form action="{{ link('threads/change-type', $thread) }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow>
				<div class="blockMessage blockMessage--warning">
					{{ phrase('changing_threads_type_warning_desc') }}
				</div>
			</xf:inforow>

			<xf:formrow label="{{ phrase('current_thread_type') }}">
				{$currentThreadTypeTitle}
			</xf:formrow>

			<xf:if is="$isTypeChange">
				<xf:formrow label="{{ phrase('new_thread_type') }}">
					{$newThreadTypeTitle}
				</xf:formrow>

				{{ $newThreadType.renderExtraDataEdit($thread, 'convert', 'full')|raw }}

				<xf:hiddenval name="new_thread_type_id">{$newThreadTypeId}</xf:hiddenval>
				<xf:hiddenval name="confirm">1</xf:hiddenval>
			<xf:else />
				<xf:radiorow name="new_thread_type_id" value="{{ $currentThreadTypeId }}" label="{{ phrase('thread_type_filter') }}">
					<xf:options source="$creatableThreadTypes" />
				</xf:radiorow>
			</xf:if>
		</div>

		<xf:if is="$newThreadTypeId">
			<xf:submitrow submit="{{ phrase('change_type') }}" />
		<xf:else />
			<xf:submitrow submit="{{ phrase('continue...') }}" />
		</xf:if>
	</div>
</xf:form>