Skip to content

Commit

Permalink
Menu searchtools consistent with module search tools. Fixes #17633
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Aug 20, 2017
1 parent eaeb91c commit b2de61d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 51 deletions.
Expand Up @@ -46,6 +46,42 @@
?>
<div class="js-stools clearfix">
<div class="clearfix">
<?php
if ($data['view'] instanceof \Joomla\Component\Menus\Administrator\View\Items\Html)
{
// We will get the menutype filter & remove it from the form filters
$menuTypeField = $data['view']->filterForm->getField('menutype');

// Add the client selector before the form filters.
$clientIdField = $data['view']->filterForm->getField('client_id');

if ($clientIdField): ?>
<div class="js-stools-container-selector">
<div class="js-stools-field-selector js-stools-client_id">
<?php echo $clientIdField->input; ?>
</div>
</div>
<?php endif; ?>
<div class="js-stools-container-selector">
<div class="js-stools-field-selector js-stools-menutype">
<?php echo $menuTypeField->input; ?>
</div>
</div>
<?php
}
elseif ($data['view'] instanceof \Joomla\Component\Menus\Administrator\View\Menus\Html)
{
// Add the client selector before the form filters.
$clientIdField = $data['view']->filterForm->getField('client_id');
?>
<div class="js-stools-container-selector">
<div class="js-stools-field-selector js-stools-client_id">
<?php echo $clientIdField->input; ?>
</div>
</div>
<?php
}
?>
<div class="js-stools-container-bar">
<?php echo JLayoutHelper::render('joomla.searchtools.default.bar', $data); ?>
</div>
Expand Down

This file was deleted.

0 comments on commit b2de61d

Please sign in to comment.