Update device_edit.php
This commit is contained in:
parent
6935f6f599
commit
f48cd2836f
|
|
@ -807,6 +807,7 @@
|
||||||
$template_dir = $device->get_template_dir();
|
$template_dir = $device->get_template_dir();
|
||||||
echo " <select id='device_template' name='device_template' class='formfld'>\n";
|
echo " <select id='device_template' name='device_template' class='formfld'>\n";
|
||||||
echo " <option value=''></option>\n";
|
echo " <option value=''></option>\n";
|
||||||
|
if (is_dir($template_dir) && is_array($device_vendors)) {
|
||||||
foreach($device_vendors as $row) {
|
foreach($device_vendors as $row) {
|
||||||
echo " <optgroup label='".escape($row["name"])."'>\n";
|
echo " <optgroup label='".escape($row["name"])."'>\n";
|
||||||
$templates = scandir($template_dir.'/'.$row["name"]);
|
$templates = scandir($template_dir.'/'.$row["name"]);
|
||||||
|
|
@ -824,6 +825,7 @@
|
||||||
}
|
}
|
||||||
echo " </optgroup>\n";
|
echo " </optgroup>\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
echo " </select>\n";
|
echo " </select>\n";
|
||||||
echo " <br />\n";
|
echo " <br />\n";
|
||||||
echo " ".$text['description-device_template']."\n";
|
echo " ".$text['description-device_template']."\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue