Revize 7dafd607
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/controllers/devices.php | ||
---|---|---|
$base_grid->field('type');
|
||
|
||
$base_grid->link_field('iface_id')
|
||
->link('devices/show_iface', 'mac');
|
||
->link('ifaces/show', 'mac');
|
||
|
||
$base_grid->callback_field('connected_to_device')
|
||
->callback('callback::device_connected_to_device')
|
||
... | ... | |
return $result;
|
||
}
|
||
|
||
/**
|
||
* Shows iface
|
||
*
|
||
* @author Michal Kliment
|
||
* @param integer $iface_id
|
||
*/
|
||
public function show_iface($iface_id = NULL)
|
||
{
|
||
Ifaces_Controller::show($iface_id);
|
||
}
|
||
|
||
/**
|
||
*
|
||
* Shows IP address
|
||
*
|
||
* @author Michal Kliment
|
||
* @param integer $ip_address_id
|
||
*/
|
||
public function show_ip_address($ip_address_id = NULL)
|
||
{
|
||
Ip_addresses_Controller::show($ip_address_id);
|
||
}
|
||
|
||
/**
|
||
* Create grids of interfaces and ip addresses of given device.
|
||
*
|
||
... | ... | |
{
|
||
$actions->add_action('id')
|
||
->icon_action('show')
|
||
->url('devices/show_iface')
|
||
->url('ifaces/show')
|
||
->class('popup_link');
|
||
}
|
||
|
||
... | ... | |
{
|
||
$actions->add_action('id')
|
||
->icon_action('show')
|
||
->url('devices/show_iface')
|
||
->url('ifaces/show')
|
||
->class('popup_link');
|
||
}
|
||
|
||
... | ... | |
{
|
||
$actions->add_action('id')
|
||
->icon_action('show')
|
||
->url('devices/show_iface')
|
||
->url('ifaces/show')
|
||
->class('popup_link');
|
||
}
|
||
|
||
... | ... | |
{
|
||
$actions->add_action('id')
|
||
->icon_action('show')
|
||
->url('devices/show_iface')
|
||
->url('ifaces/show')
|
||
->class('popup_link');
|
||
}
|
||
|
||
... | ... | |
{
|
||
$actions->add_action('id')
|
||
->icon_action('show')
|
||
->url('devices/show_iface')
|
||
->url('ifaces/show')
|
||
->class('popup_link');
|
||
}
|
||
|
||
... | ... | |
{
|
||
$actions->add_action('id')
|
||
->icon_action('show')
|
||
->url('devices/show_iface')
|
||
->url('ifaces/show')
|
||
->class('popup_link');
|
||
}
|
||
|
Také k dispozici: Unified diff
Release 1.1.12