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

<xf:form action="{{ link($linkPrefix . '/quick-set') }}" ajax="true" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:checkboxrow name="prefix_ids" listclass="inputChoices--inline"
				label="{{ phrase('apply_options_to_these_prefixes') }}">

				<xf:foreach loop="$prefixes" key="$prefixId" value="$_prefix">
					<xf:option value="{$prefixId}" checked="checked">
						<xf:label><span class="{$_prefix.css_class}">{$_prefix.title}</span></xf:label>
					</xf:option>
				</xf:foreach>
			</xf:checkboxrow>

			<xf:checkboxrow name="apply_css_class"
				label="{{ phrase('display_styling') }}">

				<xf:option label="{{ phrase('apply_display_styling_options:') }}">
					<xf:dependent>
						<xf:macro template="base_prefix_edit_macros" name="display_style"
							arg-prefix="{$prefix}"
							arg-displayStyles="{$displayStyles}"
							arg-withRow="0" />
					</xf:dependent>
				</xf:option>
			</xf:checkboxrow>

			<hr class="formRowSep" />

			<xf:checkboxrow name="apply_prefix_group_id"
				label="{{ phrase('prefix_group') }}">

				<xf:option label="{{ phrase('apply_prefix_group_options:') }}">
					<xf:dependent>
						<xf:macro template="base_prefix_edit_macros" name="prefix_groups"
							arg-prefix="{$prefix}"
							arg-prefixGroups="{$prefixGroups}"
							arg-withRow="0" />
					</xf:dependent>
				</xf:option>
			</xf:checkboxrow>

			<hr class="formRowSep" />

			<xf:checkboxrow name="apply_user_group_ids"
				label="{{ phrase('usable_by_user_groups') }}">

				<xf:option label="{{ phrase('apply_user_group_options:') }}">
					<xf:dependent>
						<xf:macro template="helper_user_group_edit" name="checkboxes"
							arg-selectedUserGroups="{{ $prefix.prefix_id ? $prefix.allowed_user_group_ids : [-1] }}"
							arg-withRow="0" />
					</xf:dependent>
				</xf:option>
			</xf:checkboxrow>

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