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

<xf:form action="{{ link('add-ons/install-from-archive-confirm') }}" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:datalist data-xf-init="responsive-data-list">
				<xf:datarow rowtype="header">
					<xf:cell>{{ phrase('add_on') }}</xf:cell>
					<xf:cell>{{ phrase('action') }}</xf:cell>
					<xf:cell>{{ phrase('version') }}</xf:cell>
				</xf:datarow>
				<xf:foreach loop="$plannedActions" key="$addOnId" value="$action">
					<xf:datarow rowclass="dataList-row--noHover">
						<xf:cell><span data-xf-init="tooltip" title="{$addOnId}">{$action.title}</span></xf:cell>
						<xf:cell>
							<xf:if is="$action.action == 'install'">
								{{ phrase('install') }}
							<xf:elseif is="$action.action == 'upgrade'" />
								{{ phrase('upgrade') }}
								<xf:set var="$displayAdvanced" value="{{ true }}" />
							<xf:elseif is="$action.action == 'rebuild'" />
								{{ phrase('rebuild') }}
								<xf:set var="$displayAdvanced" value="{{ true }}" />
							</xf:if>
						</xf:cell>
						<xf:cell>
							<xf:if is="$action.action == 'upgrade'">
								{$action.oldVersion} -&gt; {$action.version}
							<xf:else />
								{$action.version}
							</xf:if>
						</xf:cell>
					</xf:datarow>
				</xf:foreach>
			</xf:datalist>
		</div>
		<xf:if is="$displayAdvanced">
			<h3 class="block-formSectionHeader">
				{{ phrase('advanced_options') }}
			</h3>
			<div class="block-body">
				<xf:checkboxrow rowtype="fullWidth">
					<xf:option name="force_overwrite">
						<xf:label>{{ phrase('addon_force_overwrite') }}</xf:label>
						<xf:hint>{{ phrase('addon_force_overwrite_hint') }}</xf:hint>
					</xf:option>
				</xf:checkboxrow>
			</div>
		</xf:if>
		<xf:submitrow submit="{{ phrase('confirm_actions') }}" rowtype="simple"/>
	</div>
	<xf:hiddenval name="batch_id">{$batch.batch_id}</xf:hiddenval>
</xf:form>