<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.interface_group_id}"
				maxlength="{{ max_length($interfaceGroup, 'interface_group_id') }}"
				label="{{ phrase('interface_group_id') }}"
				dir="ltr" />

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

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

			<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 template="addon_macros" name="addon_edit" arg-addOnId="{$interfaceGroup.addon_id}" />
		</div>
		<xf:submitrow sticky="true" icon="save" />
	</div>

</xf:form>