<xf:if is="$category.isInsert()">
	<xf:title>{{ phrase('add_category') }}</xf:title>
<xf:else />
	<xf:title>{{ phrase('edit_category:') }} {$node.title}</xf:title>
</xf:if>

<xf:pageaction if="$category.isUpdate()">
	<xf:button href="{{ link('categories/delete', $node) }}" icon="delete" overlay="true" />
</xf:pageaction>

<xf:form action="{{ link('categories/save', $node) }}" ajax="true" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:macro id="node_edit_macros::title" arg-node="{$node}" />
			<xf:macro id="node_edit_macros::description" arg-node="{$node}" />

			<hr class="formRowSep" />
			<xf:macro id="node_edit_macros::node_name" arg-node="{$node}"  arg-additionalExplain="{{ phrase('only_relevant_if_create_pages_for_categories_option_is_enabled', {'link': link('options/categoryOwnPage/view')}) }}" />
			<xf:macro id="node_edit_macros::position" arg-node="{$node}" arg-nodeTree="{$nodeTree}" />
			<xf:macro id="node_edit_macros::navigation" arg-node="{$node}" arg-navChoices="{$navChoices}" />
			<xf:macro id="node_edit_macros::style" arg-node="{$node}" arg-styleTree="{$styleTree}" />
		</div>
		<xf:submitrow sticky="true" icon="save" />
	</div>
</xf:form>