Update device_edit.php

This commit is contained in:
FusionPBX 2018-10-23 23:12:24 -06:00 committed by GitHub
parent 6935f6f599
commit f48cd2836f
1 changed files with 14 additions and 12 deletions

View File

@ -807,6 +807,7 @@
$template_dir = $device->get_template_dir();
echo " <select id='device_template' name='device_template' class='formfld'>\n";
echo " <option value=''></option>\n";
if (is_dir($template_dir) && is_array($device_vendors)) {
foreach($device_vendors as $row) {
echo " <optgroup label='".escape($row["name"])."'>\n";
$templates = scandir($template_dir.'/'.$row["name"]);
@ -824,6 +825,7 @@
}
echo " </optgroup>\n";
}
}
echo " </select>\n";
echo " <br />\n";
echo " ".$text['description-device_template']."\n";