Added support for excluding devices from Oxidized api

This commit is contained in:
laf
2015-10-10 13:40:27 +00:00
parent 3bdf2f60d7
commit 37b7e8247d
5 changed files with 103 additions and 1 deletions

View File

@@ -1167,3 +1167,15 @@ function alert_details($details) {
}//end alert_details()
function dynamic_override_config($type, $name, $device) {
$attrib_val = get_dev_attrib($device,$name);
if ($attrib_val == 'true') {
$checked = 'checked';
}
else {
$checked = '';
}
if ($type == 'checkbox') {
return '<input type="checkbox" id="override_config" name="override_config" data-attrib="'.$name.'" data-device_id="'.$device['device_id'].'" data-size="small" '.$checked.'>';
}
}//end dynamic_override_config()