Skip to content

Commit

Permalink
webui: introduce search filters for each column on the job actions table
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Mar 12, 2020
1 parent baf5923 commit 3e66310
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions webui/module/Job/view/job/job/actions.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* bareos-webui - Bareos Web-Frontend
*
* @link https://github.com/bareos/bareos for the canonical source repository
* @copyright Copyright (c) 2013-2017 Bareos GmbH & Co. KG (http://www.bareos.org/)
* @copyright Copyright (c) 2013-2020 Bareos GmbH & Co. KG (http://www.bareos.org/)
* @license GNU Affero General Public License (http://www.gnu.org/licenses/)
*
* This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -71,12 +71,29 @@ $this->headTitle($title);

<div class="panel-body">

<table class="table table-no-bordered table-hover" id="jobactions">
<table
class="table table-no-bordered table-hover"
id="jobactions"
data-filter-control="true">

<thead class="bg-primary">
<th><?php echo $this->translate("Job name"); ?></th>
<th><?php echo $this->translate("Status"); ?></th>
<th><?php echo $this->translate("Actions"); ?></th>
<th
data-field="name"
data-filter-control="input"
data-filter-control-placeholder="<?php echo $this->translate("Job name"); ?>">
<?php echo $this->translate("Job name"); ?>
</th>
<th
data-field="enabled"
data-filter-control="input"
data-filter-control-placeholder="<?php echo $this->translate("Status"); ?>">
<?php echo $this->translate("Status"); ?>
</th>
<th>
<?php echo $this->translate("Actions"); ?>
</th>
</thead>

</table>

</div>
Expand All @@ -86,7 +103,9 @@ $this->headTitle($title);

<?php
echo $this->headScript()->prependFile($this->basePath() . '/js/custom-functions.js');
echo $this->headLink()->prependStylesheet($this->basePath() . '/css/bootstrap-table-filter-control.min.css');
echo $this->headLink()->prependStylesheet($this->basePath() . '/css/bootstrap-table.min.css');
echo $this->headScript()->prependFile($this->basePath() . '/js/bootstrap-table-filter-control.min.js');
echo $this->headScript()->prependFile($this->basePath() . '/js/bootstrap-table-locale-all.min.js');
echo $this->headScript()->prependFile($this->basePath() . '/js/bootstrap-table-cookie.min.js');
echo $this->headScript()->prependFile($this->basePath() . '/js/bootstrap-table.min.js');
Expand Down

0 comments on commit 3e66310

Please sign in to comment.