DEL unnecessary code

This commit is contained in:
2023-10-06 04:47:51 +02:00
parent 7f79667409
commit 2b5e287a78
7 changed files with 22 additions and 99 deletions

View File

@ -10,17 +10,16 @@
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Router\Route;
//$wa = $this->document->getWebAssetManager();
//$wa->useScript('keepalive');
//$wa->useScript('form.validate');
HTMLHelper::_('behavior.formvalidator');
HTMLHelper::_('behavior.keepalive');
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('form.validate')
->useScript('keepalive');
?>
<form action="<?php echo Route::_('index.php?option=com_depot&view=part&layout=edit&id=' . (int) $this->item->id); ?>"
method="post" name="adminForm" id="item-form" class="form-validate">
<?php echo $this->form->renderField('titel'); ?>
<?php echo $this->form->renderField('component_name'); ?>
<input type="hidden" name="task" value="part.edit" />
<?php echo HTMLHelper::_('form.token'); ?>