diff --git a/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php b/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php index 32b9df6ba8..005be15117 100644 --- a/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php +++ b/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php @@ -1229,8 +1229,9 @@ function getValidNetworks() { $arrValidNetworks['bridges'] = array_diff($arrBridges, $remove); // This breaks VMSettings.page if libvirt is not running - if ($libvirt_running == "yes") { + if ($libvirt_running == "yes") { $arrVirtual = $lv->libvirt_get_net_list($lv->get_connection()); + sort($arrVirtual, SORT_NATURAL | SORT_FLAG_CASE); if (($key = array_search('default', $arrVirtual)) !== false) { unset($arrVirtual[$key]); diff --git a/emhttp/plugins/dynamix.vm.manager/styles/edit.css b/emhttp/plugins/dynamix.vm.manager/styles/edit.css index 4634bb0a54..ee16cfc5e9 100644 --- a/emhttp/plugins/dynamix.vm.manager/styles/edit.css +++ b/emhttp/plugins/dynamix.vm.manager/styles/edit.css @@ -272,6 +272,10 @@ select.narrow { min-width: 90px !important; } +select.network_source { + width: 100%; +} + select.second { margin-left: 12px; max-width: 90px; @@ -422,4 +426,4 @@ input.second { .cpu-checkbox-dual .checkmark { position: relative; display: inline-block; -} \ No newline at end of file +} diff --git a/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php b/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php index 2b4db8e265..3fae3dfa3b 100755 --- a/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php +++ b/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php @@ -1576,7 +1576,7 @@