<xf:title>{{ phrase('quick_set_prompts') }}</xf:title>

<xf:form action="{{ link($linkPrefix . '/quick-set') }}" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:selectrow name="prompt_id"
				label="{{ phrase('copy_settings_from') }}"
				explain="{{ phrase('on_next_page_you_may_apply_settings_to_all_selected_prompts') }}">

				<xf:option value="-1">{{ phrase('(none)') }}</xf:option>
				<xf:foreach loop="$promptGroups" key="$groupId" value="$promptGroup" if="{{ count($promptsGrouped.{$groupId}) > 0 }}">
					<xf:optgroup label="{{ $groupId ? $promptGroup.title : phrase('ungrouped') }}">
						<xf:foreach loop="{$promptsGrouped.{$groupId}}" key="$promptId" value="$prompt">
							<xf:option value="{$promptId}" label="{$prompt.title}" />
						</xf:foreach>
					</xf:optgroup>
				</xf:foreach>

			</xf:selectrow>
		</div>
		<xf:submitrow submit="{{ phrase('proceed...') }}" name="quickset" value="1" />
	</div>
	<xf:foreach loop="$promptIds" value="$promptId">
		<xf:hiddenval name="prompt_ids[]">{$promptId}</xf:hiddenval>
	</xf:foreach>
</xf:form>