From 7ef25fec579b6e70671633f5d72383b3bd3cf95f Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Fri, 20 Dec 2013 23:48:04 +0000 Subject: [PATCH] All form Save and Reset buttons now built with same icon, color, size. Fixed bug on Organization add/edit form that prevented Reset button from working. Fixed Jobs drop-down navigation menu- icon was missing on some pages. --- awx/ui/static/js/controllers/Organizations.js | 4 ++-- awx/ui/static/js/forms/Credentials.js | 5 ----- awx/ui/static/js/forms/Groups.js | 6 ------ awx/ui/static/js/forms/HostGroups.js | 6 ------ awx/ui/static/js/forms/Hosts.js | 6 ------ awx/ui/static/js/forms/Inventories.js | 6 ------ awx/ui/static/js/forms/JobTemplates.js | 6 ------ awx/ui/static/js/forms/Organizations.js | 6 ------ awx/ui/static/js/forms/Permissions.js | 6 ------ awx/ui/static/js/forms/Projects.js | 6 ------ awx/ui/static/js/forms/Teams.js | 6 ------ awx/ui/static/js/forms/Users.js | 6 ------ awx/ui/static/lib/ansible/form-generator.js | 14 +++++++++++++- awx/ui/static/lib/ansible/list-generator.js | 8 ++++---- 14 files changed, 19 insertions(+), 72 deletions(-) diff --git a/awx/ui/static/js/controllers/Organizations.js b/awx/ui/static/js/controllers/Organizations.js index 67dd5f908d..18e0c2942f 100644 --- a/awx/ui/static/js/controllers/Organizations.js +++ b/awx/ui/static/js/controllers/Organizations.js @@ -130,7 +130,7 @@ function OrganizationsAdd ($scope, $rootScope, $compile, $location, $log, $route // Cancel scope.formReset = function() { $rootScope.flashMessage = null; - form.reset(); + generator.reset(); }; } @@ -223,7 +223,7 @@ function OrganizationsEdit ($scope, $rootScope, $compile, $location, $log, $rout // Reset the form scope.formReset = function() { $rootScope.flashMessage = null; - form.reset(); + generator.reset(); for (var fld in master) { scope[fld] = master[fld]; } diff --git a/awx/ui/static/js/forms/Credentials.js b/awx/ui/static/js/forms/Credentials.js index 322e05f9b3..1875dcd6f3 100644 --- a/awx/ui/static/js/forms/Credentials.js +++ b/awx/ui/static/js/forms/Credentials.js @@ -243,16 +243,11 @@ angular.module('CredentialFormDefinition', []) buttons: { //for now always generates \n"; + "ng-click=\"finishSelection()\" ng-disabled=\"disableSelectBtn\"> Select\n"; html += "\n"; }