diff --git a/awx/ui/client/legacy-styles/forms.less b/awx/ui/client/legacy-styles/forms.less index 1cd8059d7c..a6fa0eab06 100644 --- a/awx/ui/client/legacy-styles/forms.less +++ b/awx/ui/client/legacy-styles/forms.less @@ -50,6 +50,51 @@ color:@default-icon; } +.Form-tabHolder{ + display: flex; + margin-bottom: 20px; +} + +.Form-tab { + color: @btn-txt; + background-color: @btn-bg; + font-size: 12px; + border: 1px solid @btn-bord; + height: 30px; + border-radius: 5px; + margin-right: 20px; + padding-left: 10px; + padding-right: 10px; + padding-bottom: 5px; + padding-top: 5px; + transition: background-color 0.2s; + text-transform: uppercase; + text-align: center; + white-space: nowrap; +} + +.Form-tab:hover { + color: @btn-txt; + background-color: @btn-bg-hov; + cursor: pointer; +} + +.Form-tab:active { + color: @btn-txt-sel; + background-color: @btn-bg-sel; + cursor: pointer; +} + +.Form-tab:focus { + color: @btn-txt-sel; +} + +.Form-tab.is-selected { + color: @btn-txt-sel; + background-color: @btn-bg-sel; + border-color: @btn-bord-sel; +} + .Form-formGroup { flex: 1 0 auto; margin-bottom: 25px; diff --git a/awx/ui/client/src/controllers/Projects.js b/awx/ui/client/src/controllers/Projects.js index 6165c791b2..f4f5e9bf98 100644 --- a/awx/ui/client/src/controllers/Projects.js +++ b/awx/ui/client/src/controllers/Projects.js @@ -829,6 +829,10 @@ export function ProjectsEdit($scope, $rootScope, $compile, $location, $log, $scope.formCancel = function () { $state.transitionTo('projects'); }; + $scope.projectSelected = true; + $scope.toggleTabs = function(tab){ + $scope[tab+"Selected"] = true; + }; } ProjectsEdit.$inject = ['$scope', '$rootScope', '$compile', '$location', '$log', diff --git a/awx/ui/client/src/shared/form-generator.js b/awx/ui/client/src/shared/form-generator.js index 359d86ccaf..33b10e2ddd 100644 --- a/awx/ui/client/src/shared/form-generator.js +++ b/awx/ui/client/src/shared/form-generator.js @@ -1402,18 +1402,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat // string to be injected into the current view. // var btn, button, fld, field, html = '', i, section, group, - tab, sectionShow, offset, width,ngDisabled; - - if (this.form.collapse && this.form.collapseMode === options.mode) { - html += "