AC-369 Inventories->Hosts page now uses the /api/vi/inventories/N/trees to load the tree. Tree is loaded fully expanded.

This commit is contained in:
chouseknecht
2013-08-27 18:31:19 -04:00
parent fe03a789b6
commit 415fbc5362
5 changed files with 336 additions and 270 deletions

View File

@@ -941,7 +941,8 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies'])
// build the hosts page
html += "<div class=\"row\">\n";
html += "<div class=\"col-lg-3\" id=\"search-tree-target\">\n";
html += "<div aw-tree=\"searchTree\"></div>\n";
//html += "<div aw-tree=\"searchTree\"></div>\n";
html += "<div class=\"search-tree well\" id=\"search-tree-container\">\n</div>\n";
html += "</div>\n";
html += "<div class=\"col-lg-9\">\n";
html += "<div class=\"hosts-well well\">\n";
@@ -978,8 +979,8 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies'])
// "data-placement=\"top\"></th>\n";
for (var fld in form.fields) {
html += "<th class=\"list-header\" id=\"" + form.iterator + '-' + fld + "-header\" ";
html += (!form.fields[fld].nosort) ? "ng-click=\"sort('" + form.iterator + "', '" + fld + "')\"" : "";
html += "<th class=\"list-header\" id=\"" + fld + "-header\" ";
html += (!form.fields[fld].nosort) ? "ng-click=\"sort('"+ fld + "')\"" : "";
html += ">";
html += (form['fields'][fld].label && form['fields'][fld].type !== 'DropDown') ? form['fields'][fld].label : '';
if (form.fields[fld].nosort == undefined || form.fields[fld].nosort == false) {