<xf:if is="$promptGroup.isInsert()">
	<xf:title>{{ phrase('add_prompt_group') }}</xf:title>
	<xf:else />
	<xf:title>{{ phrase('edit_prompt_group:') }} {$promptGroup.title}</xf:title>
</xf:if>

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

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

			<xf:macro template="display_order_macros" name="row"
				arg-value="{$promptGroup.display_order}" />
		</div>
		<xf:submitrow icon="save" />
	</div>
</xf:form>