Skip to content

Commit

Permalink
Batch: field groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Nov 9, 2023
1 parent d93f520 commit 64bed81
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ protected function addToolbar()
// Add a batch button
if ($canDo->get('core.create') && $canDo->get('core.edit') && $canDo->get('core.edit.state')) {
$childBar->popupButton('batch', 'JTOOLBAR_BATCH')
->selector('collapseModal')
->popupType('inline')
->textHeader(Text::_('COM_FIELDS_VIEW_GROUPS_BATCH_OPTIONS'))
->url('#joomla-dialog-batch')
->modalWidth('800px')
->modalHeight('fit-content')
->listCheck(true);
}
}
Expand Down
10 changes: 1 addition & 9 deletions administrator/components/com_fields/tmpl/groups/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,7 @@
&& $user->authorise('core.edit', $component)
&& $user->authorise('core.edit.state', $component)
) : ?>
<?php echo HTMLHelper::_(
'bootstrap.renderModal',
'collapseModal',
[
'title' => Text::_('COM_FIELDS_VIEW_GROUPS_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; ?>
<?php endif; ?>
<input type="hidden" name="task" value="">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
defined('_JEXEC') or die;

use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
?>

Expand All @@ -30,3 +31,8 @@
</div>
</div>
</div>
<div class="btn-toolbar p-3">
<joomla-toolbar-button task="group.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 64bed81

Please sign in to comment.