<?php
/**
 * @package AkeebaBackup
 * @copyright Copyright (c)2009-2014 Nicholas K. Dionysopoulos
 * @license GNU General Public License version 3, or later
 *
 * @since 3.3
 */

// Protect from unauthorized access
defined('_JEXEC') or die();

/** @var  $this  AkeebaViewTransfer */
?>

<fieldset>
	<legend>
		<?php echo JText::_('COM_AKEEBA_TRANSFER_HEAD_PREREQUISITES'); ?>
	</legend>

	<table class="table table-striped" width="100%">
		<tr>
			<td>
				<strong>
					<?php echo JText::_('COM_AKEEBA_TRANSFER_LBL_COMPLETEBACKUP') ?>
				</strong>

				<br/>
				<small>
					<?php if (empty($this->latestBackup)): ?>
						<?php echo JText::_('COM_AKEEBA_TRANSFER_ERR_COMPLETEBACKUP'); ?>
					<?php else: ?>
						<?php echo JText::sprintf('COM_AKEEBA_TRANSFER_LBL_COMPLETEBACKUP_INFO', $this->lastBackupDate); ?>
					<?php endif; ?>
				</small>
			</td>
			<td width="20%">
				<?php if (empty($this->latestBackup)): ?>
					<a href="index.php?option=com_akeeba&view=backup" class="btn btn-success"
					   id="akeeba-transfer-btn-backup">
						<?php echo JText::_('BACKUP_LABEL_START'); ?>
					</a>
				<?php endif; ?>
			</td>
		</tr>
		<?php if (!empty($this->latestBackup)): ?>
			<tr>
				<td>
					<strong>
						<?php echo JText::sprintf('COM_AKEEBA_TRANSFER_LBL_SPACE', $this->spaceRequired['string']); ?>
					</strong>
					<br/>
					<small id="akeeba-transfer-err-space" style="display: none">
						<?php echo JText::_('COM_AKEEBA_TRANSFER_ERR_SPACE'); ?>
					</small>
				</td>
				<td>
				</td>
			</tr>
		<?php endif; ?>
	</table>
</fieldset>

