mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
This commit is contained in:
@@ -363,6 +363,15 @@ input[type='radio']:checked:before {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
.Form-button{
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Form-buttonDefault {
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
color: #848992;
|
||||||
|
border-color: #E8E8E8;
|
||||||
|
}
|
||||||
|
|
||||||
.Form-saveButton{
|
.Form-saveButton{
|
||||||
background-color: @submit-button-bg;
|
background-color: @submit-button-bg;
|
||||||
|
|||||||
@@ -91,6 +91,10 @@ body {
|
|||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn{
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 1075px) {
|
@media (max-width: 1075px) {
|
||||||
|
|
||||||
#main-menu-container {
|
#main-menu-container {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
* @description This controller controls the adhoc form creation, command launching and navigating to standard out after command has been succesfully ran.
|
* @description This controller controls the adhoc form creation, command launching and navigating to standard out after command has been succesfully ran.
|
||||||
*/
|
*/
|
||||||
function adhocController($q, $scope, $rootScope, $location, $stateParams,
|
function adhocController($q, $scope, $rootScope, $location, $stateParams,
|
||||||
CheckPasswords, PromptForPasswords, CreateLaunchDialog, adhocForm,
|
$state, CheckPasswords, PromptForPasswords, CreateLaunchDialog, adhocForm,
|
||||||
GenerateForm, Rest, ProcessErrors, ClearScope, GetBasePath, GetChoices,
|
GenerateForm, Rest, ProcessErrors, ClearScope, GetBasePath, GetChoices,
|
||||||
KindChange, LookUpInit, CredentialList, Empty, Wait) {
|
KindChange, LookUpInit, CredentialList, Empty, Wait) {
|
||||||
|
|
||||||
@@ -162,6 +162,10 @@ function adhocController($q, $scope, $rootScope, $location, $stateParams,
|
|||||||
|
|
||||||
privateFn.initializeForm(id, urls, hostPattern);
|
privateFn.initializeForm(id, urls, hostPattern);
|
||||||
|
|
||||||
|
$scope.formCancel = function(){
|
||||||
|
$state.go('inventoryManage');
|
||||||
|
}
|
||||||
|
|
||||||
// remove all data input into the form and reset the form back to defaults
|
// remove all data input into the form and reset the form back to defaults
|
||||||
$scope.formReset = function () {
|
$scope.formReset = function () {
|
||||||
GenerateForm.reset();
|
GenerateForm.reset();
|
||||||
@@ -291,7 +295,7 @@ function adhocController($q, $scope, $rootScope, $location, $stateParams,
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default ['$q', '$scope', '$rootScope', '$location', '$stateParams',
|
export default ['$q', '$scope', '$rootScope', '$location', '$stateParams',
|
||||||
'CheckPasswords', 'PromptForPasswords', 'CreateLaunchDialog', 'adhocForm',
|
'$state', 'CheckPasswords', 'PromptForPasswords', 'CreateLaunchDialog', 'adhocForm',
|
||||||
'GenerateForm', 'Rest', 'ProcessErrors', 'ClearScope', 'GetBasePath',
|
'GenerateForm', 'Rest', 'ProcessErrors', 'ClearScope', 'GetBasePath',
|
||||||
'GetChoices', 'KindChange', 'LookUpInit', 'CredentialList', 'Empty', 'Wait',
|
'GetChoices', 'KindChange', 'LookUpInit', 'CredentialList', 'Empty', 'Wait',
|
||||||
adhocController];
|
adhocController];
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
return {
|
return {
|
||||||
editTitle: 'Execute Command',
|
addTitle: 'Execute Command',
|
||||||
name: 'adhoc',
|
name: 'adhoc',
|
||||||
well: true,
|
well: true,
|
||||||
forceListeners: true,
|
forceListeners: true,
|
||||||
@@ -125,13 +125,16 @@ export default function() {
|
|||||||
|
|
||||||
buttons: {
|
buttons: {
|
||||||
launch: {
|
launch: {
|
||||||
label: 'Launch',
|
label: 'Save',
|
||||||
ngClick: 'launchJob()',
|
ngClick: 'launchJob()',
|
||||||
ngDisabled: true
|
ngDisabled: true,
|
||||||
|
'class': 'Form-buttonDefault Form-button'
|
||||||
},
|
},
|
||||||
reset: {
|
reset: {
|
||||||
ngClick: 'formReset()',
|
ngClick: 'formReset()',
|
||||||
ngDisabled: true
|
ngDisabled: true,
|
||||||
|
label: 'Reset',
|
||||||
|
'class': 'Form-buttonDefault Form-button'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="tab-pane" id="credentials">
|
<div class="Panel" id="adhoc">
|
||||||
<div ng-cloak id="htmlTemplate">
|
<div ng-cloak id="htmlTemplate">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
import {templateUrl} from '../shared/template-url/template-url.factory';
|
import {templateUrl} from '../shared/template-url/template-url.factory';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
route: '/inventories/:inventory_id/adhoc',
|
route: '/adhoc',
|
||||||
name: 'inventoryAdhoc',
|
name: 'inventoryManage.adhoc',
|
||||||
templateUrl: templateUrl('adhoc/adhoc'),
|
templateUrl: templateUrl('adhoc/adhoc'),
|
||||||
controller: 'adhocController',
|
controller: 'adhocController',
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
@@ -859,7 +859,8 @@ export function InventoriesManage ($log, $scope, $rootScope, $location,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$rootScope.hostPatterns = host_patterns;
|
$rootScope.hostPatterns = host_patterns;
|
||||||
$location.path('/inventories/' + $scope.inventory.id + '/adhoc');
|
$state.go('inventoryManage.adhoc');
|
||||||
|
//$location.path('/inventories/' + $scope.inventory.id + '/adhoc');
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.refreshHostsOnGroupRefresh = false;
|
$scope.refreshHostsOnGroupRefresh = false;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<div class="tab-pane" id="inventory_edit">
|
<div class="tab-pane" id="inventory_edit">
|
||||||
|
<div ui-view></div>
|
||||||
<div ng-cloak id="htmlTemplate">
|
<div ng-cloak id="htmlTemplate">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
Reference in New Issue
Block a user