<?php
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Language\Text;

defined('_JEXEC') or die;

if (version_compare(JVERSION, '4.0.0-dev', 'lt'))
{
	HTMLHelper::_('behavior.formvalidation');
	HTMLHelper::_('behavior.tooltip');
}
else
{
	HTMLHelper::_('bootstrap.tooltip', '.hasTooltip', ['placement' => 'left']);
}
?>
<form action="<?php echo Route::_('index.php?option=com_edocman&task=sefoptimize'); ?>" method="post" name="adminForm" id="sef-form" class="form-validate">

<div class="container my-5">
	<div class="row justify-content-center">
		<div class="col-lg-8 col-md-10">
			<div class="card shadow-lg border-0">
				<div class="card-body text-center p-4">
					<div class="mb-3">
						<i class="fas fa-link fa-3x text-primary"></i>
					</div>
					<h3 class="card-title mb-3">
						<?php echo Text::_('EDOCMAN_SEF_URLS_OPTIMIZATION');?>
					</h3>
					<p class="card-text text-muted mb-4">
						<?php echo Text::_('EDOCMAN_SEF_URLS_OPTIMIZATION_EXPLAIN');?>
					</p>
					<div class="d-grid gap-2 d-md-flex justify-content-center">
						<button type="submit" class="btn btn-success px-4">
							<i class="fas fa-check-circle me-2"></i>
							<?php echo Text::_('EDOCMAN_YES_I_AGREE');?>
						</button>
						<button type="button" onclick="returnControlPanel();" class="btn btn-outline-secondary px-4">
							<i class="fas fa-times-circle me-2"></i>
							<?php echo Text::_('EDOCMAN_NO_I_DO_NOT_AGREE');?>
						</button>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<input type="hidden" name="option" id="option" value="com_edocman" />
<input type="hidden" name="task" value="sefoptimize" id="task" />
<input type="hidden" name="boxchecked" value="0" />
<?php echo HTMLHelper::_('form.token'); ?>
</form>
<script type="text/javascript">
function returnControlPanel(){
	location.href = "index.php?option=com_edocman";
}
</script>
