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

<xf:form action="{{ link('add-ons/mass-toggle', null, {'enable': 1}) }}" class="block" ajax="true">

	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				<p>{{ phrase('you_sure_you_want_to_re_enable_previously_disabled_add_ons') }}</p>
				<p>{{ phrase('you_may_control_which_add_ons_re_enabled_from_list_below:') }}</p>
			</xf:inforow>

			<xf:checkboxrow name="to_enable">
				<xf:foreach loop="$addOns" key="$addOnId" value="$addOn">
					<xf:option value="{$addOnId}" selected="in_array($addOnId, $disabled)" label="{$addOn.title}">
						<xf:hint>{{ $addOn.active ? phrase('this_add_on_is_already_enabled') : '' }}</xf:hint>
					</xf:option>
				</xf:foreach>
			</xf:checkboxrow>
		</div>

		<xf:submitrow submit="{{ phrase('enable') }}" icon="disable" />
	</div>

	<xf:redirect />

</xf:form>