<xf:if is="$smilieCategory.isInsert()">
	<xf:title>{{ phrase('add_smilie_category') }}</xf:title>
<xf:else />
	<xf:title>{{ phrase('edit_smilie_category:') }} {$smilieCategory.title}</xf:title>
</xf:if>

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

<xf:form action="{{ link('smilie-categories/save', $smilieCategory) }}" ajax="true" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:textboxrow name="title" value="{{ $smilieCategory.exists() ? $smilieCategory.MasterTitle.phrase_text : '' }}"
				label="{{ phrase('title') }}"/>

			<xf:macro template="display_order_macros" name="row"
				arg-value="{$smilieCategory.display_order}" />
		</div>

		<xf:submitrow icon="save" />
	</div>
</xf:form>