{breadcrumbs}[[Update to new version]]{/breadcrumbs}

<div class="page-title">
	<h1 class="title">[[Update control]]</h1>
</div>
{if $zip_extension_loaded == true}

	<p class="note alert alert-info">
	[[Please enter your Client Area access details. You got these access details to our system when you purchased your license.]]
	</p>

	{foreach from=$errors item=error key=error_code}
		<p class="error">
			[[{$error}]]
		</p>
	{/foreach}

	<div class="panel panel-default">
		<form method="post" action="{$GLOBALS.site_url}/update-to-new-version/" class="panel-body">
			<div class="table-responsive">
				<table class="table table-clear">
					<tr class="{cycle values = 'evenrow,oddrow' advance=true}">
						<td width="150px">[[SJB Client Area Login]]</td>
						<td width="210px"><input type="text" name="auth_username"></td>
					</tr>

					<tr class="{cycle values = 'evenrow,oddrow' advance=true}">
						<td>[[Password]]</td>
						<td><input type="password" name="auth_password"></td>
					</tr>

					<tr>
						<td>
							[[Update Type]]
						</td>
						<td>
							<label class="cr-styled cr-styled__radio">
								<input type="radio" id="way_to_updateAuto" name="way_to_update" value="autoUpdate" {if !isset($wayToUpdate) or $wayToUpdate eq 'autoUpdate'}checked="checked"{/if} />
								<i class="fa"></i>
								[[Auto]]
							</label>
							<br/>
							<label class="cr-styled cr-styled__radio">
								<input type="radio" id="way_to_updateArch" name="way_to_update" value="makeArchive" {if $wayToUpdate eq 'makeArchive'}checked="checked"{/if} />
								<i class="fa"></i>
								[[Get Archived Files]]
							</label>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" colspan="2">
							{capture assign="trContinue"}[[Continue]]{/capture}
							<input class="grayButton" type="submit" name="update_to_version" value="[[{$trContinue|escape:'html'}]]" />
						</td>
					</tr>
				</table>
			</div>
		</form>
	</div>

{else}
	{foreach from=$errors item=error key=error_code}
		<p class="error">
			[[{$error}]]
		</p>
	{/foreach}
{/if}