<xf:if is="$prompt.isInsert()">
	<xf:title>{{ phrase('add_prompt') }}</xf:title>
	<xf:else />
	<xf:title>{{ phrase('edit_prompt:') }} {$prompt.title}</xf:title>
</xf:if>

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

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

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

			<hr class="formRowSep" />

			<xf:macro id="base_prompt_edit_macros::prompt_groups" arg-prompt="{$prompt}"
				arg-promptGroups="{$promptGroups}" />

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

			<hr class="formRowSep" />

			{$extraOptions|raw}
		</div>
		<xf:submitrow sticky="true" icon="save" />
	</div>
</xf:form>