diff --git a/awx/ui/static/css/ansible-ui.css b/awx/ui/static/css/ansible-ui.css index a7749777eb..626474e2b4 100644 --- a/awx/ui/static/css/ansible-ui.css +++ b/awx/ui/static/css/ansible-ui.css @@ -79,6 +79,7 @@ .login-alert { font-weight: bold; + font-size: 16px; text-align: center; color: #0088cc; margin-bottom: 15px; @@ -259,6 +260,7 @@ .status-actions { display: inline-block; height: 25px; + margin-bottom: 20px; } .status-spin { @@ -268,10 +270,6 @@ font-size: 22px; } - .status-fields { - margin-top: 15px; - } - .search-widget label { display:inline-block; vertical-align: middle; @@ -357,10 +355,6 @@ margin-top: 2px; } - .status-actions { - margin-bottom: 20px; - } - /* End Display list actions */ .well { @@ -425,9 +419,10 @@ } .job-detail-status { + display: inline-block; font-size: 15px; font-weight: bold; - padding-left: 15px; + margin-top:5px; } .form-items .search-widget { diff --git a/awx/ui/static/js/controllers/Jobs.js b/awx/ui/static/js/controllers/Jobs.js index 92337615b5..5e997b3e36 100644 --- a/awx/ui/static/js/controllers/Jobs.js +++ b/awx/ui/static/js/controllers/Jobs.js @@ -231,6 +231,7 @@ function JobsEdit ($scope, $rootScope, $compile, $location, $log, $routeParams, $('input[type="checkbox"]').attr('disabled','disabled'); $('input[type="radio"]').attr('disabled','disabled'); $('#host_config_key-gen-btn').attr('disabled','disabled'); + $('textarea').attr('disabled','disabled'); }) .error( function(data, status, headers, config) { ProcessErrors(scope, data, status, form, @@ -319,6 +320,17 @@ function JobsEdit ($scope, $rootScope, $compile, $location, $log, $routeParams, } } + // Calc row size of stdout and traceback textarea fields + var n = scope['result_stdout'].match(/\n/g); + var rows = (n) ? n.length : 1; + rows = (rows > 15) ? 15 : rows; + scope['stdout_rows'] = rows; + + n = scope['result_traceback'].match(/\n/g); + var rows = (n) ? n.length : 1; + rows = (rows > 15) ? 15 : rows; + scope['traceback_rows'] = rows; + LookUpInit({ scope: scope, form: form, diff --git a/awx/ui/static/js/forms/JobTemplates.js b/awx/ui/static/js/forms/JobTemplates.js index 83d5962667..6cd68fd132 100644 --- a/awx/ui/static/js/forms/JobTemplates.js +++ b/awx/ui/static/js/forms/JobTemplates.js @@ -96,24 +96,24 @@ angular.module('JobTemplateFormDefinition', []) "default": '0', addRequired: false, editRequired: false, - column: 2, + column: 1, awPopOver: "
The number of parallel or simultaneous processes to use while executing the playbook. Provide a value between 0 and 100. " + "A value of zero will use the ansible default setting of 5 parallel processes.
", dataTitle: 'Forks', - dataPlacement: 'left' + dataPlacement: 'right' }, limit: { label: 'Limit', type: 'text', addRequired: false, editRequired: false, - column: 2, + column: 1, awPopOver: "Provide a host pattern to further constrain the list of hosts that will be managed or affected by the playbook. " + "Multiple patterns can be separated by ; : or ,
For more information and examples see the " + "Selecting Targets section under Inventory and Patterns " + " in the Ansible documentation.
", dataTitle: 'Limit', - dataPlacement: 'left' + dataPlacement: 'right' }, verbosity: { label: 'Verbosity', @@ -122,10 +122,10 @@ angular.module('JobTemplateFormDefinition', []) "default": 0, addRequired: true, editRequired: true, - column: 2, + column: 1, awPopOver: "Control the level of output ansible will produce as the playbook executes.
", dataTitle: 'Verbosity', - dataPlacement: 'left' + dataPlacement: 'right' }, variables: { label: 'Extra Variables', diff --git a/awx/ui/static/js/forms/Jobs.js b/awx/ui/static/js/forms/Jobs.js index f029829e21..8ab4c89fd9 100644 --- a/awx/ui/static/js/forms/Jobs.js +++ b/awx/ui/static/js/forms/Jobs.js @@ -82,7 +82,7 @@ angular.module('JobFormDefinition', []) ngClick: 'lookUpCredential()', addRequired: false, editRequired: false, - column: 2 + column: 1 }, forks: { label: 'Forks', @@ -96,24 +96,24 @@ angular.module('JobFormDefinition', []) "default": '0', addRequired: false, editRequired: false, - column: 2, + column: 1, awPopOver: "The number of parallel or simultaneous processes to use while executing the playbook. Provide a value between 0 and 100. " + "A value of zero will use the ansible default setting of 5 parallel processes.
", dataTitle: 'Forks', - dataPlacement: 'left' + dataPlacement: 'right' }, limit: { label: 'Limit', type: 'text', addRequired: false, editRequired: false, - column: 2, + column: 1, awPopOver: "Provide a host pattern to further constrain the list of hosts that will be managed or affected by the playbook. " + "Multiple patterns can be separated by ; : or ,
For more information and examples see the " + "Selecting Targets section under Inventory and Patterns " + " in the Ansible documentation.
", dataTitle: 'Limit', - dataPlacement: 'left' + dataPlacement: 'right' }, verbosity: { label: 'Verbosity', @@ -122,10 +122,10 @@ angular.module('JobFormDefinition', []) "default": 0, addRequired: true, editRequired: true, - column: 2, + column: 1, awPopOver: "Control the level of output ansible will produce as the playbook executes.
", dataTitle: 'Verbosity', - dataPlacement: 'left' + dataPlacement: 'right' }, variables: { label: 'Extra Variables', @@ -238,10 +238,10 @@ angular.module('JobFormDefinition', []) statusFields: { status: { - label: 'Job Status \{\{ status \}\}', - type: 'text', + label: 'Job Status', + type: 'custom', + control: '