mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-05-28 04:35:53 -04:00
CommandArguments: provide quickSearch
This commit is contained in:
parent
bf65f668a7
commit
cfabbf25e0
2 changed files with 5 additions and 4 deletions
|
|
@ -35,7 +35,7 @@ class CommandController extends ObjectController
|
|||
$form->loadObject($id);
|
||||
}
|
||||
$form->handleRequest();
|
||||
$table = IcingaCommandArgumentTable::create($o);
|
||||
$this->content()->add([$form, $table]);
|
||||
$this->content()->add([$form]);
|
||||
IcingaCommandArgumentTable::create($o)->renderTo($this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ class IcingaCommandArgumentTable extends ZfQueryBasedTable
|
|||
protected $command;
|
||||
|
||||
protected $searchColumns = array(
|
||||
'command',
|
||||
'ca.argument_name',
|
||||
'ca.argument_value',
|
||||
);
|
||||
|
||||
public static function create(IcingaCommand $command)
|
||||
|
|
@ -67,6 +68,6 @@ class IcingaCommandArgumentTable extends ZfQueryBasedTable
|
|||
)->where(
|
||||
'ca.command_id = ?',
|
||||
$this->command->get('id')
|
||||
)->order('ca.sort_order')->order('ca.argument_name');
|
||||
)->order('ca.sort_order')->order('ca.argument_name')->limit(100);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue