<xf:if is="$permission.isInsert()">
	<xf:title>{{ phrase('add_admin_permission') }}</xf:title>
<xf:else />
	<xf:title>{{ phrase('edit_admin_permission:') }} {$permission.title}</xf:title>
</xf:if>

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

<xf:form action="{{ link('admin-permissions/save', $permission) }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">

			<xf:textboxrow name="admin_permission_id" value="{$permission}"
				label="{{ phrase('permission_id') }}"
				dir="ltr" />

			<xf:textboxrow name="title" value="{$permission}"
				label="{{ phrase('title') }}" />

			<xf:macro id="display_order_macros::row" arg-value="{$permission}" />

			<xf:macro id="addon_macros::addon_edit" arg-addOnId="{$permission.addon_id}" />
		</div>

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