* @copyright (C) 2023 KW4NZ, * @license GNU General Public License version 2 or later; see LICENSE.md * @since 0.0.1 */ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; /** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('table.columns') ->useScript('multiselect'); $canChange = true; $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $saveOrder = $listOrder == 'd.ordering'; if ($saveOrder && !empty($this->items)) { $saveOrderingUrl = 'index.php?option=com_depot&task=parts.saveOrderAjax&tmpl=component'; HTMLHelper::_('draggablelist.draggable'); } ?>
$this]); ?> items)): ?>
class="js-draggable" data-url="" data-direction="" data-nested="true" > items as $i => $item): $ordering = ($listOrder == 'ordering'); $canChange = true; ?>
, ,
id, false, 'cid', 'cb', $item->component_name); ?>
ordering; ?>
state, $i, 'parts.', $canChange); ?>
package_name; ?> mounting_style)): ?>
mounting_style, Text::_('COM_DEPOT_LIST_MOUNTING_STYLE_UNKNOWN') ); ?>
escape($item->quantity); ?> quantity_exp; ?>
escape($item->description); ?>
escape($item->manufacturer); ?> escape($item->stock_name); ?>
escape($item->owner); ?>
id ?>
pagination->getListFooter(); ?>