* @license GNU General Public License version 2 or later; see LICENSE.txt * @since 4.0.0 */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; use Joomla\CMS\Session\Session; /** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('table.columns') ->useScript('multiselect'); $user = Factory::getUser(); $userId = $user->id; $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $saveOrderingUrl = ''; $saveOrder = ($listOrder == 's.ordering'); if ($saveOrder) { $saveOrderingUrl = 'index.php?option=com_workflow&task=stages.saveOrderAjax&workflow_id=' . (int) $this->workflowID . '&extension=' . $this->escape($this->extension) . '&' . Session::getFormToken() . '=1'; HTMLHelper::_('draggablelist.draggable'); } ?>
sidebar)) : ?>
sidebar; ?>
$this)); ?> stages)) : ?>
stages as $i => $item) : $edit = Route::_('index.php?option=com_workflow&task=stage.edit&id=' . $item->id . '&workflow_id=' . (int) $this->workflowID . '&extension=' . $this->extension); $canEdit = $user->authorise('core.edit', $this->extension . '.stage.' . $item->id); $canCheckin = $user->authorise('core.admin', 'com_workflow') || $item->checked_out == $userId || is_null($item->checked_out); $canChange = $user->authorise('core.edit.state', $this->extension . '.stage.' . $item->id) && $canCheckin; ?>
, ,
id, false, 'cid', 'cb', Text::_($item->title)); ?> published, $i, 'stages.', $canChange); ?> default, $i, 'stages.', $canChange); ?> checked_out) : ?> editor, $item->checked_out_time, 'stages.', $canCheckin); ?> escape(Text::_($item->title)); ?>
escape(Text::_($item->description)); ?>
escape(Text::_($item->title)); ?>
escape(Text::_($item->description)); ?>
id; ?>
pagination->getListFooter(); ?>