<xf:macro id="prompt_groups" arg-prompt="!" arg-promptGroups="!" arg-withRow="1">

	<xf:if is="$withRow">
		<xf:selectrow name="prompt_group_id" value="{$prompt}" label="{{ phrase('prompt_group') }}">
			<xf:option value="" label="{{ phrase('(none)') }}" />
			<xf:options source="{$promptGroups}" />
		</xf:selectrow>
	<xf:else />
		<xf:select name="prompt_group_id" value="{$prompt}">
			<xf:option value="" label="{{ phrase('(none)') }}" />
			<xf:options source="{$promptGroups}" />
		</xf:select>
	</xf:if>
</xf:macro>