Inventory UI changes. Added action buttons to tree. Removed All Hosts group from tree (click on Inventory root node to see All Hosts). Added Create/Select buttons to hosts list. Preparing to move group/host views to modal dialog.

This commit is contained in:
chouseknecht
2013-05-31 23:02:18 -04:00
parent e121235ba9
commit 9ca489d5ab
5 changed files with 48 additions and 37 deletions

View File

@@ -639,12 +639,18 @@ angular.module('FormGenerator', ['GeneratorHelpers'])
for (var itm in form.related) {
if (form.related[itm].type == 'tree') {
html += "<div id=\"tree-view\" class=\"span5\"></div>\n";
html += "<div class=\"span5\">";
html += "<div class=\"inventory-buttons pull-right\">";
html += "<button ng-hide=\"groupAddHide\" id=\"inv-group-add\" class=\"btn btn-mini btn-success\"><i class=\"icon-plus\"></i> Add Group</button>";
html += "<button ng-hide=\"groupEditHide\" id=\"inv-group-edit\" class=\"btn btn-mini btn-success\"><i class=\"icon-edit\"></i> Edit Group</button>";
html += "</div>\n";
html += "<div id=\"tree-view\"></div>\n";
html += "</div>\n";
}
else {
html += "<div id=\"group-view\" class=\"span7\">\n";
html += "<div class=\"well\">\n";
html += "<h5>" + form.related[itm].title + "</h5>\n";
html += "<div id=\"hosts-well\" class=\"well\">\n";
html += "<h4 id=\"hosts-title\">" + form.related[itm].title + "</h4>\n";
html += SearchWidget({ iterator: form.related[itm].iterator, template: form.related[itm], mini: true });
// Add actions(s)