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

<xf:form action="{{ link('nodes/add') }}" ajax="true" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:radiorow name="node_type_id" value="{$defaultNodeTypeId}"
				label="{{ phrase('node_type') }}">

				<xf:foreach loop="$nodeTypes" value="$nodeType">
					<xf:if is="$nodeType.node_type_id == 'Forum'">
						<xf:option value="{$nodeType.node_type_id}"
							label="{$nodeType.title}"
							data-hide="true"
							data-xf-init="disabler"
							data-container=".js-forumTypes" />
					<xf:else />
						<xf:option value="{$nodeType.node_type_id}">{$nodeType.title}</xf:option>
					</xf:if>
				</xf:foreach>

				<xf:explain>{{ phrase('this_cannot_be_changed_once_node_has_been_created') }}</xf:explain>
			</xf:radiorow>

			<div class="js-forumTypes">
				<xf:radiorow name="forum_type_id" value="{$defaultForumTypeId}"
					label="{{ phrase('forum_type') }}">
					<xf:foreach loop="$forumTypesInfo" key="$forumTypeId" value="$forumTypeInfo">
						<xf:option value="{$forumTypeId}"
							label="{$forumTypeInfo.title}"
							hint="{$forumTypeInfo.description}" />
					</xf:foreach>
				</xf:radiorow>
			</div>
		</div>
		<xf:submitrow submit="{{ phrase('proceed...') }}" />
	</div>
	<xf:hiddenval name="parent_node_id">{$parentNodeId}</xf:hiddenval>
</xf:form>