<xf:title>{{ phrase('upgrade_xenforo:') }} {$availableUpdate.version_string}</xf:title>

<div class="blocks">

<div class="blockMessage blockMessage--important">
	<b>{{ phrase('note:') }}</b>
	{{ phrase('strongly_recommended_backup_database_and_files') }}
</div>

<xf:form action="{{ link('tools/upgrade-xf') }}" class="block">
	<div class="block-container">
		<div class="block-body">
			<div class="block-row">
				{{ phrase('xenforo_version_x_available_for_installation', {'version': $availableUpdate.version_string}) }}
				<xf:if is="$availableUpdate.significant_upgrade">
					<br />
					<br />
					{{ phrase('xf_one_click_upgrade_significant_explain') }}
				</xf:if>

				<br />
				<br />
				{{ phrase('one_click_upgrade_explain') }}
			</div>

			<xf:if is="$upgradeCheck.license_agreement_required">
				<xf:checkboxrow rowtype="fullWidth noLabel" standalone="true">
					<xf:option name="agree" required="required">{{ phrase('install_xf_addon_terms_confirm') }}</xf:option>
					<xf:explain>{{ phrase('xf_addon_license_agreement_last_updated_x', {'last_agreement_update': $upgradeCheck.last_agreement_update}) }}</xf:explain>
				</xf:checkboxrow>
			</xf:if>
		</div>
		<xf:submitrow icon="download" submit="{{ phrase('download_and_upgrade...') }}" rowtype="simple"/>
	</div>
	<xf:hiddenval name="confirm_version_id" value="{$availableUpdate.version_id}" />
	<xf:if is="$useLatest">
		<xf:hiddenval name="latest">1</xf:hiddenval>
	</xf:if>
</xf:form>

<xf:if is="$alternativeVersion">
	<div class="blocks-textJoiner"><span></span><em>{{ phrase('or_separator') }}</em><span></span></div>

	<div class="block">
		<div class="block-container">
			<h2 class="block-minorHeader">{{ phrase('alternative_upgrade_xenforo_x', {'version': $alternativeVersion.version_string}) }}</h2>
			<div class="block-body block-row">
				{{ phrase('xenforo_version_x_available_for_installation', {'version': $alternativeVersion.version_string}) }}
				<br />
				<br />
				{{ phrase('xf_one_click_upgrade_significant_explain') }}
			</div>
			<xf:submitrow rowtype="simple"><xf:html>
				<xf:button href="{{ link('tools/upgrade-xf', null, {'latest': 1}) }}" class="button--primary">{{ phrase('upgrade_to_x...', {'version': $alternativeVersion.version_string}) }}</xf:button>
			</xf:html></xf:submitrow>
		</div>
	</div>
</xf:if>

</div>