Select existing projects by clicking each project or checking the related checkbox. When finished, click the blue ' +
'Select button, located bottom right.
Create a brand new project by clicking the green Create New button.
\n";
+ for (var link in this.form.navigationLinks) {
+ html += this.navigationLink(this.form.navigationLinks[link]);
+ }
+ html += "
\n";
+ }
// Start the well
if ( this.has('well') ) {
@@ -951,6 +963,22 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies'])
//
// Used to create the inventory detail view
//
+
+
+ function navigationLinks(page) {
+ // Returns html for navigation links
+ var html = "
\n";
+ html += " Inventory Properties\n";
+ if (page == 'group') {
+ html += " Hosts\n";
+ }
+ else {
+ html += " Groups\n";
+ }
+ html += "
\n";
+ return html;
+ }
+
var form = this.form;
var itm = "groups";
@@ -966,17 +994,20 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies'])
"use the Inventories->Hosts page to " +
"add hosts to the group.
";
html += "\n";
- html += "
\n";
+
+ html += navigationLinks('group');
+
+ html += "
\n";
html += "
\n";
- html += "\n";
- html += "\n";
+ html += "\n";
+ //html += "\n";
html += "\n";
- html += "\n";
+ "Properties\n";
+ //html += "\n";
html += "\n";
html += "
\n";
+
+ html += "
\n";
+ html += "×\n";
+ html += "
Hint: To add hosts to the inventory, select a group using the Group Selector.
";
+ html += "
\n";
+
html += "
\n";
html += "
\n";
html += "
\n";
html += "
\n
\n";
- html += "
" +
- " Groups
\n";
+ //html += "
" +
+ // " Groups
\n";
html += "
\n";
html += "
\n";
html += "
\n";
- html += "
\n";
+
+ html += navigationLinks('host');
+ html += "
\n";
+
html += SearchWidget({ iterator: form.iterator, template: form, mini: true, size: 'col-md-6 col-lg-6'});
html += "
\n"
html += "
\n";
diff --git a/awx/ui/static/lib/ansible/utilities.js b/awx/ui/static/lib/ansible/utilities.js
index f53f9a2b63..494e291b7a 100644
--- a/awx/ui/static/lib/ansible/utilities.js
+++ b/awx/ui/static/lib/ansible/utilities.js
@@ -171,7 +171,8 @@ angular.module('Utilities',[])
break;
}
}
- if (paths[i] == 'hosts' && $rootScope.crumbCache[j].altPath) {
+ if ($rootScope.crumbCache[j] && $rootScope.crumbCache[j]['altPath'] !== undefined) {
+ // Use altPath to override default path construction
$rootScope.breadcrumbs.push({ title: child, path: $rootScope.crumbCache[j].altPath });
}
else {