diff --git a/awx/ui/static/lib/ansible/form-generator.js b/awx/ui/static/lib/ansible/form-generator.js index 4c5e6bb2cf..c04162ff1e 100644 --- a/awx/ui/static/lib/ansible/form-generator.js +++ b/awx/ui/static/lib/ansible/form-generator.js @@ -26,8 +26,9 @@ * | mode | Y | 'add', 'edit' or 'modal'. Use add when creating new data - creating a new orgranization, for example. Use edit when modifying existing data. Modal is deprecated. Use the 'id' option to inject a form into a modal dialog. | * | scope | | Reference to $scope object. Will be passed to $compile and associated with any angular directives contained within the generated HTML. | * | breadCrumbs | | true or false. If false, breadcrumbs will not be inlcluded in the generated HTML. | + * | showButtons | | true or false. If false, buttons defined in the buttons object will not be included in the generated HTML. | * - * # Generate HTML Only + * #Generate HTML Only * * To generate the HTML only and not inject it into the DOM use the buildHTML() method: * @@ -37,40 +38,103 @@ * * Pass the same parameters as above. Returns a string containing the generated HTML. * - * # Reset Form + * #Reset Form * * Call GenerateFrom.reset() to clear user input, remove error messages and return the angular form object back to a pristine state. This is should be called when the user clicks the Reset button. * - * # Form definitions + * #Form definitions * * See forms/*.js for examples. * * The form object can have the following attributes: * - * | Atribute | Description | - * | -------- | ----------- | + * | Attribute | Description | + * | --------- | ----------- | * | addTitle | Title to use in breadcrumbs when the form mode is 'add' | - * | editTitle | Title to use in breadcrumbs when the form mode is 'edit' | - * | name | Name to give the form object. Used to create the id and name attribute values in the