* @license GNU General Public License version 2 or later; see LICENSE.txt */ 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; HTMLHelper::_('behavior.combobox'); $hasContent = isset($this->item->xml->customContent); $hasContentFieldName = 'content'; // For a later improvement if ($hasContent) { $hasContentFieldName = 'content'; } // Get Params Fieldsets $this->fieldsets = $this->form->getFieldsets('params'); $this->useCoreUI = true; Text::script('JYES'); Text::script('JNO'); Text::script('JALL'); Text::script('JTRASHED'); $this->document->addScriptOptions('module-edit', ['itemId' => $this->item->id, 'state' => (int) $this->item->id == 0 ? 'Add' : 'Edit']); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('keepalive') ->useScript('form.validate') ->useScript('com_modules.admin-module-edit'); $input = Factory::getApplication()->input; // In case of modal $isModal = $input->get('layout') === 'modal'; $layout = $isModal ? 'modal' : 'edit'; $tmpl = $isModal || $input->get('tmpl', '', 'cmd') === 'component' ? '&tmpl=component' : ''; ?>
'general', 'recall' => true, 'breakpoint' => 768]); ?>
item->xml) : ?> item->xml->description) : ?>

item->xml) { echo ($text = (string) $this->item->xml->name) ? Text::_($text) : $this->item->module; } else { echo Text::_('COM_MODULES_ERR_XML'); } ?>

item->client_id == 0 ? Text::_('JSITE') : Text::_('JADMINISTRATOR'); ?>
fieldset = 'description'; $short_description = Text::_($this->item->xml->description); $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 = ''; } } } ?>

form->getInput($hasContentFieldName); } $this->fieldset = 'basic'; $html = LayoutHelper::render('joomla.edit.fieldset', $this); echo $html ? '
' . $html : ''; ?>
fields = array( 'showtitle', 'position', 'published', 'publish_up', 'publish_down', 'access', 'ordering', 'language', 'note' ); ?> item->client_id == 0) : ?>
item->client_id == 0) : ?>
loadTemplate('assignment'); ?>
fieldsets = array(); $this->ignore_fieldsets = array('basic', 'description'); echo LayoutHelper::render('joomla.edit.params', $this); ?> canDo->get('core.admin')) : ?>
form->getInput('rules'); ?>
form->getInput('module'); ?> form->getInput('client_id'); ?>