<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.prompt_id ? $prompt.MasterTitle.phrase_text : '' }}"
				label="{{ phrase('title') }}" />

			<hr class="formRowSep" />

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

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

			<hr class="formRowSep" />

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