name : default.php
<?php
/**
 * @package   admintools
 * @copyright Copyright (c)2010-2025 Nicholas K. Dionysopoulos / Akeeba Ltd
 * @license   GNU General Public License version 3, or later
 */

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;

/** @var \Akeeba\Component\AdminTools\Administrator\View\Emailtemplates\HtmlView $this */

$token = Factory::getApplication()->getFormToken();
?>

<div class="card mb-3">
	<h3 class="card-header bg-info text-white">
		<?= Text::_('COM_ADMINTOOLS_EMAILTEMPLATES_LBL_WHERE_HEAD') ?>
	</h3>
	<div class="card-body">
		<p>
			<?= Text::_('COM_ADMINTOOLS_EMAILTEMPLATES_LBL_WHERE_TEXT') ?>
		</p>
		<p>
			<a href="<?= Route::_('index.php?option=com_mails&filter[extension]=com_admintools') ?>"
			   class="btn btn-primary">
				<span class="fa fa-envelope" aria-hidden="true"></span>
				<?= Text::_('COM_ADMINTOOLS_EMAILTEMPLATES_BTN_MAILTEMPLATES') ?>
			</a>
		</p>
	</div>
</div>

<div class="card">
	<h3 class="card-header bg-primary text-white">
		<?= Text::_('COM_ADMINTOOLS_EMAILTEMPLATES_LBL_MANAGE_HEAD') ?>
	</h3>
	<div class="card-body">
		<div class="row cols-2">
			<div class="col d-flex flex-column align-items-center">
				<div class="mb-2">
					<a href="<?= Route::_('index.php?option=com_admintools&view=Emailtemplates&task=updateEmails&' . $token . '=1') ?>"
					   class="btn btn-success d-flex flex-column" style="min-width: 10em"
					>
						<span class="fa fa-check fs-1 p-2" aria-hidden="true"></span>
						<span>
							<?= Text::_('COM_ADMINTOOLS_EMAILTEMPLATES_BTN_UPDATE') ?>
						</span>
					</a>
				</div>
				<div class="text-muted">
					<?= Text::_('COM_ADMINTOOLS_EMAILTEMPLATES_LBL_UPDATE') ?>
				</div>
			</div>
			<div class="col d-flex flex-column align-items-center">
				<div class="mb-2">
					<a href="<?= Route::_('index.php?option=com_admintools&view=Emailtemplates&task=resetEmails&' . $token . '=1') ?>"
					   class="btn btn-danger d-flex flex-column" style="min-width: 10em"
					>
						<span class="fa fa-redo-alt fs-1 p-2" aria-hidden="true"></span>
						<span>
							<?= Text::_('COM_ADMINTOOLS_EMAILTEMPLATES_BTN_RESET') ?>
						</span>
					</a>
				</div>
				<div class="text-muted">
					<?= Text::_('COM_ADMINTOOLS_EMAILTEMPLATES_LBL_RESET') ?>
				</div>
			</div>
		</div>
	</div>
</div>

© 2025 Cubjrnet7