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

	<xf:if is="$withRow">
		<xf:selectrow name="prompt_group_id" value="{$prompt.prompt_group_id}" 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.prompt_group_id}">
			<xf:option value="" label="{{ phrase('(none)') }}" />
			<xf:options source="{$promptGroups}" />
		</xf:select>
	</xf:if>
</xf:macro>