mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Created new help widget and applied to Inventory-> Groups. Help can now be a movable dialog with images and text. Help definitions (objects) can include many steps to tell a story or walk through a process.
This commit is contained in:
@@ -105,11 +105,13 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies'])
|
||||
label.addClass('prepend-asterisk');
|
||||
}
|
||||
});
|
||||
|
||||
// Remove leftover timer, if any
|
||||
//if ((!options.modal) && this.scope.timer) {
|
||||
// clearInterval(this.scope.timer);
|
||||
//}
|
||||
|
||||
try {
|
||||
$('#help-modal').empty().dialog('destroy');
|
||||
}
|
||||
catch(e) {
|
||||
//ignore any errors should the dialog not be initialized
|
||||
}
|
||||
|
||||
if (options.modal) {
|
||||
this.scope.formModalActionDisabled = false;
|
||||
@@ -1198,12 +1200,12 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies'])
|
||||
html += this.breadCrumbs(options, navigation);
|
||||
|
||||
// build the groups page
|
||||
html += "<div ng-show=\"showGroupHelp\" class=\"alert alert-dismissable alert-info\">\n";
|
||||
html += "<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>\n";
|
||||
html += "<p><strong>Hint:</strong> Get started building your inventory by adding a group. After creating a group, " +
|
||||
"use the <a href=\"/#/inventories/\{\{ inventory_id \}\}/hosts\"><em>Inventories->Hosts</em></a> page to " +
|
||||
"add hosts to the group.</p>";
|
||||
html += "</div>\n";
|
||||
//html += "<div ng-show=\"showGroupHelp\" class=\"alert alert-dismissable alert-info\">\n";
|
||||
//html += "<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>\n";
|
||||
//html += "<p><strong>Hint:</strong> Get started building your inventory by adding a group. After creating a group " +
|
||||
// "go to the <a href=\"/#/inventories/\{\{ inventory_id \}\}/hosts\"><em>Hosts</em></a> page to " +
|
||||
// "add hosts to the group.</p>";
|
||||
//html += "</div>\n";
|
||||
|
||||
/*
|
||||
html += "<div class=\"row\">\n";
|
||||
|
||||
Reference in New Issue
Block a user