<xf:title>{{ phrase('change_forum_type') }}: {$node.title}</xf:title>

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

			<xf:formrow label="{{ phrase('current_forum_type') }}" explain="{$currentForumTypeDesc}">
				{$currentForumTypeTitle}
			</xf:formrow>

			<xf:if is="$newForumTypeId">
				<xf:formrow label="{{ phrase('new_forum_type') }}" explain="{$newForumTypeDesc}">
					{$newForumTypeTitle}
				</xf:formrow>
				<xf:if is="$typeConfigTemplate">
					<xf:include template="{$typeConfigTemplate}" />
				</xf:if>
				<xf:hiddenval name="new_forum_type_id">{$newForumTypeId}</xf:hiddenval>
				<xf:hiddenval name="confirm">1</xf:hiddenval>
			<xf:else />
				<xf:radiorow name="new_forum_type_id" value="{$currentForumTypeId}"
					label="{{ phrase('new_forum_type') }}">
					<xf:foreach loop="$forumTypesInfo" key="$forumTypeId" value="$forumTypeInfo">
						<xf:option value="{$forumTypeId}"
							label="{$forumTypeInfo.title}"
							hint="{$forumTypeInfo.description}" />
					</xf:foreach>
				</xf:radiorow>
			</xf:if>
		</div>
		<xf:if is="$newForumTypeId">
			<xf:submitrow submit="{{ phrase('change_type') }}" />
		<xf:else />
			<xf:submitrow submit="{{ phrase('continue...') }}" />
		</xf:if>
	</div>
</xf:form>