mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
CommandArguments: provide quickSearch
This commit is contained in:
parent
bf65f668a7
commit
cfabbf25e0
@ -35,7 +35,7 @@ class CommandController extends ObjectController
|
|||||||
$form->loadObject($id);
|
$form->loadObject($id);
|
||||||
}
|
}
|
||||||
$form->handleRequest();
|
$form->handleRequest();
|
||||||
$table = IcingaCommandArgumentTable::create($o);
|
$this->content()->add([$form]);
|
||||||
$this->content()->add([$form, $table]);
|
IcingaCommandArgumentTable::create($o)->renderTo($this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,8 @@ class IcingaCommandArgumentTable extends ZfQueryBasedTable
|
|||||||
protected $command;
|
protected $command;
|
||||||
|
|
||||||
protected $searchColumns = array(
|
protected $searchColumns = array(
|
||||||
'command',
|
'ca.argument_name',
|
||||||
|
'ca.argument_value',
|
||||||
);
|
);
|
||||||
|
|
||||||
public static function create(IcingaCommand $command)
|
public static function create(IcingaCommand $command)
|
||||||
@ -67,6 +68,6 @@ class IcingaCommandArgumentTable extends ZfQueryBasedTable
|
|||||||
)->where(
|
)->where(
|
||||||
'ca.command_id = ?',
|
'ca.command_id = ?',
|
||||||
$this->command->get('id')
|
$this->command->get('id')
|
||||||
)->order('ca.sort_order')->order('ca.argument_name');
|
)->order('ca.sort_order')->order('ca.argument_name')->limit(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user