Skip to content

Commit

Permalink
Batch: modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Nov 9, 2023
1 parent 0e7e634 commit 3695cae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ protected function addToolbar()
&& $user->authorise('core.edit.state', 'com_modules')
) {
$childBar->popupButton('batch', 'JTOOLBAR_BATCH')
->selector('collapseModal')
->popupType('inline')
->textHeader(Text::_('COM_MODULES_BATCH_OPTIONS'))
->url('#joomla-dialog-batch')
->modalWidth('800px')
->modalHeight('fit-content')
->listCheck(true);
}

Expand Down
10 changes: 1 addition & 9 deletions administrator/components/com_modules/tmpl/modules/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,7 @@
&& $user->authorise('core.edit', 'com_modules')
&& $user->authorise('core.edit.state', 'com_modules')
) : ?>
<?php echo HTMLHelper::_(
'bootstrap.renderModal',
'collapseModal',
[
'title' => Text::_('COM_MODULES_BATCH_OPTIONS'),
'footer' => $this->loadTemplate('batch_footer'),
],
$this->loadTemplate('batch_body')
); ?>
<template id="joomla-dialog-batch"><?php echo $this->loadTemplate('batch_body'); ?></template>
<?php endif; ?>
<input type="hidden" name="task" value="">
<input type="hidden" name="boxchecked" value="0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,8 @@
</div>
</div>
</div>
<div class="btn-toolbar p-3">
<joomla-toolbar-button task="module.batch" class="ms-auto">
<button type="button" class="btn btn-success"><?php echo Text::_('JGLOBAL_BATCH_PROCESS'); ?></button>
</joomla-toolbar-button>
</div>

This file was deleted.

0 comments on commit 3695cae

Please sign in to comment.