Skip to content

Commit

Permalink
make toolbar partial more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Oct 7, 2023
1 parent cfb8cdf commit dcfc794
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions modules/backend/widgets/toolbar/partials/_toolbar.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
<?php if ($controlPanel || $search): ?>
<div class="toolbar-widget <?= $cssClasses ?>" id="<?= $this->getId() ?>">
<div class="control-toolbar">

<?php if ($controlPanel): ?>
<!-- Control Panel -->
<div class="toolbar-item toolbar-primary">
<?= ($controlPanel) ?: '&nbsp;' ?>
<?= ($controlPanel) ?>
</div>
<?php endif ?>

<?php if ($search): ?>
<!-- List Search -->
<?php if ($search): ?>
<div class="toolbar-item" data-calculate-width>
<?= $search ?>
</div>
<?php endif ?>
<div class="toolbar-item" data-calculate-width>
<?= $search ?>
</div>
<?php endif ?>

</div>
</div>
</div>
<?php endif ?>

0 comments on commit dcfc794

Please sign in to comment.