<xf:if is="$interfaceGroup.isInsert()">
	<xf:title>{{ phrase('add_interface_group') }}</xf:title>
<xf:else />
	<xf:title>{{ phrase('edit_interface_group:') }} {$interfaceGroup.title}</xf:title>
</xf:if>

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

<xf:form action="{{ link('permission-definitions/interface-groups/save', $interfaceGroup) }}" ajax="true" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:textboxrow name="interface_group_id" value="{$interfaceGroup}"
				label="{{ phrase('interface_group_id') }}"
				dir="ltr" />

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

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

			<xf:checkboxrow name="is_moderator" value="{$interfaceGroup.is_moderator}">
				<xf:option value="1" label="{{ phrase('this_interface_group_contains_moderator_permissions') }}" />
			</xf:checkboxrow>

			<xf:macro id="addon_macros::addon_edit" arg-addOnId="{$interfaceGroup.addon_id}" />
		</div>
		<xf:submitrow sticky="true" icon="save" />
	</div>

</xf:form>