some fix
This commit is contained in:
@ -13,8 +13,9 @@ class BootstrapSelectFilter extends Filter
|
||||
{
|
||||
$select = SelectBuilder::build($this->name, [
|
||||
'class' => 'form-control',
|
||||
'options' => $this->param,
|
||||
'options' => $this->params['options'],
|
||||
'value' => $this->value,
|
||||
'prompt' => $this->params['prompt'] ?? null,
|
||||
]);
|
||||
|
||||
return "<td>" . $select->create()->fetch() . "</td>";
|
||||
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace kernel\filters;
|
||||
|
||||
use itguild\forms\builders\SelectBuilder;
|
||||
use Itguild\Tables\Filter\Filter;
|
||||
use kernel\helpers\Debug;
|
||||
|
||||
class BootstrapSelectFilterWithPrompt extends Filter
|
||||
{
|
||||
|
||||
public function fetch(): string
|
||||
{
|
||||
$select = SelectBuilder::build($this->name, [
|
||||
'class' => 'form-control',
|
||||
'options' => $this->param,
|
||||
'value' => $this->value,
|
||||
'prompt' => "Не выбрано"
|
||||
]);
|
||||
|
||||
return "<td>" . $select->create()->fetch() . "</td>";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user