* @license GNU General Public License version 2 or later; see LICENSE.txt */ // Restrict direct access defined('_JEXEC') or die; use Joomla\CMS\Application\AdministratorApplication; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; use Joomla\Component\Scheduler\Administrator\Task\TaskOption; use Joomla\Component\Scheduler\Administrator\View\Task\HtmlView; /** @var HtmlView $this */ $wa = $this->document->getWebAssetManager(); $wa->useScript('keepalive'); $wa->useScript('form.validate'); $wa->useStyle('com_scheduler.admin-view-task-css'); /** @var AdministratorApplication $app */ $app = $this->app; $input = $app->getInput(); // Fieldsets to be ignored by the `joomla.edit.params` template. $this->ignore_fieldsets = ['aside', 'details', 'exec_hist', 'custom-cron-rules', 'basic', 'advanced', 'priority']; // Used by the `joomla.edit.params` template to render the right template for UI tabs. $this->useCoreUI = true; $advancedFieldsets = $this->form->getFieldsets('params'); // Don't show the params fieldset, they will be loaded later foreach ($advancedFieldsets as $name => $fieldset) : if ($name === 'task_params') : unset($advancedFieldsets[$name]); continue; endif; $this->ignore_fieldsets[] = $fieldset->name; endforeach; ?>
'general')); ?> item->id) ? Text::_('COM_SCHEDULER_NEW_TASK') : Text::_('COM_SCHEDULER_EDIT_TASK') ); ?>
item->taskOption) : /** @var TaskOption $taskOption */ $taskOption = $this->item->taskOption; ?>

title ?>

fieldset = 'description'; $short_description = Text::_($taskOption->desc); $long_description = LayoutHelper::render('joomla.edit.fieldset', $this); if (!$long_description) { $truncated = HTMLHelper::_('string.truncate', $short_description, 550, true, false); if (strlen($truncated) > 500) { $long_description = $short_description; $short_description = HTMLHelper::_('string.truncate', $truncated, 250); if ($short_description == $long_description) { $long_description = ''; } } } ?>

enqueueMessage(Text::_('COM_SCHEDULER_WARNING_EXISTING_TASK_TYPE_NOT_FOUND'), 'warning'); ?>
form->renderFieldset('basic'); ?>
form->renderFieldset('custom-cron-rules'); ?>
form->renderFieldset('aside'); ?>
form->renderFieldset('priority') ?>
label ?: 'COM_SCHEDULER_FIELDSET_' . $fieldset->name) ?> form->renderFieldset($fieldset->name) ?>
form->renderFieldset('exec_hist'); ?>
form->renderFieldset('details'); ?>
canDo->get('core.admin')) : ?>
form->getInput('rules'); ?>
form->getInput('context'); ?>