@@ -14,18 +14,20 @@ if (!$grid) {
1414</script>
1515
1616<div class="clearfix" data-spy="grid" data-grid="<?= $ grid ->getUid () ?> ">
17- <p>
18- Filters:<br/>
19- <a href="<?= $ grid ->filter ('status ' , 'eq ' , 'active ' ) ?> ">All Active Users</a> <br/>
20- <a href="<?= $ grid ->filter ('id ' , 'gt ' , 30 ) ?> ">All users with Id > 30</a> <br/>
21- <a href="<?= $ grid ->filter ('id ' , 'lt ' , 70 , false ) ?> ">AND users with Id < 70</a> <br/>
22- <a href="<?= $ grid ->filter ('status ' , 'eq ' , 'active ' , false ) ?> ">AND Active Users</a> <br/>
23- <a href="<?= $ grid ->filter ('id ' , 'ne ' , 42 , false ) ?> ">AND without user with Id = 42</a> <br/>
24- </p>
25- <div class="input-group">
26- <a href="<?= $ this ->url ('test ' , 'crud ' ) ?> " class="btn btn-primary pull-left"
17+ <nav class="navbar navbar-light bg-light justify-content-start">
18+ <a class="navbar-brand ml-3" href="#">Filters:</a>
19+ <a href="<?= $ grid ->filter ('status ' , 'eq ' , 'active ' ) ?> " class="btn btn-info ml-3" data-ajax>All Active Users</a>
20+ <a href="<?= $ grid ->filter ('id ' , 'gt ' , 30 ) ?> " class="btn btn-info ml-3" data-ajax>All users with Id > 30</a>
21+ <a href="<?= $ grid ->filter ('id ' , 'lt ' , 70 , false ) ?> " class="btn btn-info ml-3" data-ajax>AND users with Id < 70</a>
22+ <a href="<?= $ grid ->filter ('status ' , 'eq ' , 'active ' , false ) ?> " class="btn btn-info ml-3" data-ajax>AND Active Users</a>
23+ <a href="<?= $ grid ->filter ('id ' , 'ne ' , 42 , false ) ?> " class="btn btn-info ml-3" data-ajax>AND without user with Id = 42</a>
24+ </nav>
25+ <hr/>
26+ <nav class="navbar navbar-light bg-light justify-content-start">
27+ <a href="<?= $ this ->url ('test ' , 'crud ' ) ?> " class="btn btn-primary"
2728 data-ajax-dialog data-ajax-method="get">Create</a>
28- </div>
29+ </nav>
30+
2931 <hr/>
3032 <?= $ this ->partial ('grid/total.phtml ' , ['grid ' => $ grid ]) ?>
3133 <?= $ this ->partial ('grid/limit.phtml ' , ['grid ' => $ grid ]) ?>
0 commit comments