mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 13:39:27 -02:30
Merge pull request #4333 from kensible/4330-i18n-ctint
[Configure TinT] Wrapping strings in i18n
This commit is contained in:
@@ -22,6 +22,7 @@ export default [
|
|||||||
'ConfigurationUtils',
|
'ConfigurationUtils',
|
||||||
'CreateSelect2',
|
'CreateSelect2',
|
||||||
'GenerateForm',
|
'GenerateForm',
|
||||||
|
'i18n',
|
||||||
'ParseTypeChange',
|
'ParseTypeChange',
|
||||||
function(
|
function(
|
||||||
$scope,
|
$scope,
|
||||||
@@ -41,6 +42,7 @@ export default [
|
|||||||
ConfigurationUtils,
|
ConfigurationUtils,
|
||||||
CreateSelect2,
|
CreateSelect2,
|
||||||
GenerateForm,
|
GenerateForm,
|
||||||
|
i18n,
|
||||||
ParseTypeChange
|
ParseTypeChange
|
||||||
) {
|
) {
|
||||||
var authVm = this;
|
var authVm = this;
|
||||||
@@ -60,10 +62,10 @@ export default [
|
|||||||
authVm.activeAuthForm = authVm.dropdownValue;
|
authVm.activeAuthForm = authVm.dropdownValue;
|
||||||
formTracker.setCurrentAuth(authVm.activeAuthForm);
|
formTracker.setCurrentAuth(authVm.activeAuthForm);
|
||||||
} else {
|
} else {
|
||||||
var msg = 'You have unsaved changes. Would you like to proceed <strong>without</strong> saving?';
|
var msg = i18n._('You have unsaved changes. Would you like to proceed <strong>without</strong> saving?');
|
||||||
var title = 'Warning: Unsaved Changes';
|
var title = i18n._('Warning: Unsaved Changes');
|
||||||
var buttons = [{
|
var buttons = [{
|
||||||
label: "Discard changes",
|
label: i18n._('Discard changes'),
|
||||||
"class": "btn Form-cancelButton",
|
"class": "btn Form-cancelButton",
|
||||||
"id": "formmodal-cancel-button",
|
"id": "formmodal-cancel-button",
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
@@ -74,7 +76,7 @@ export default [
|
|||||||
$('#FormModal-dialog').dialog('close');
|
$('#FormModal-dialog').dialog('close');
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
label: "Save changes",
|
label: i18n._('Save changes'),
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
$scope.$parent.vm.formSave()
|
$scope.$parent.vm.formSave()
|
||||||
.then(function() {
|
.then(function() {
|
||||||
@@ -94,14 +96,14 @@ export default [
|
|||||||
};
|
};
|
||||||
|
|
||||||
var dropdownOptions = [
|
var dropdownOptions = [
|
||||||
{label: 'Azure AD', value: 'azure'},
|
{label: i18n._('Azure AD'), value: 'azure'},
|
||||||
{label: 'Github', value: 'github'},
|
{label: i18n._('Github'), value: 'github'},
|
||||||
{label: 'Github Org', value: 'github_org'},
|
{label: i18n._('Github Org'), value: 'github_org'},
|
||||||
{label: 'Github Team', value: 'github_team'},
|
{label: i18n._('Github Team'), value: 'github_team'},
|
||||||
{label: 'Google OAuth2', value: 'google_oauth'},
|
{label: i18n._('Google OAuth2'), value: 'google_oauth'},
|
||||||
{label: 'LDAP', value: 'ldap'},
|
{label: i18n._('LDAP'), value: 'ldap'},
|
||||||
{label: 'RADIUS', value: 'radius'},
|
{label: i18n._('RADIUS'), value: 'radius'},
|
||||||
{label: 'SAML', value: 'saml'}
|
{label: i18n._('SAML'), value: 'saml'}
|
||||||
];
|
];
|
||||||
|
|
||||||
CreateSelect2({
|
CreateSelect2({
|
||||||
@@ -217,7 +219,7 @@ export default [
|
|||||||
CreateSelect2({
|
CreateSelect2({
|
||||||
element: '#configuration_ldap_template_AUTH_LDAP_GROUP_TYPE',
|
element: '#configuration_ldap_template_AUTH_LDAP_GROUP_TYPE',
|
||||||
multiple: false,
|
multiple: false,
|
||||||
placeholder: 'Select group types',
|
placeholder: i18n._('Select group types'),
|
||||||
opts: opts
|
opts: opts
|
||||||
});
|
});
|
||||||
// Fix for bug where adding selected opts causes form to be $dirty and triggering modal
|
// Fix for bug where adding selected opts causes form to be $dirty and triggering modal
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export default function() {
|
export default ['i18n', function(i18n) {
|
||||||
return {
|
return {
|
||||||
name: 'configuration_azure_template',
|
name: 'configuration_azure_template',
|
||||||
showActions: true,
|
showActions: true,
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
buttons: {
|
buttons: {
|
||||||
reset: {
|
reset: {
|
||||||
ngClick: 'vm.resetAllConfirm()',
|
ngClick: 'vm.resetAllConfirm()',
|
||||||
label: 'Reset All',
|
label: i18n._('Reset All'),
|
||||||
class: 'Form-button--left Form-cancelButton'
|
class: 'Form-button--left Form-cancelButton'
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
@@ -51,3 +51,4 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export default function() {
|
export default ['i18n', function(i18n) {
|
||||||
return {
|
return {
|
||||||
name: 'configuration_github_org_template',
|
name: 'configuration_github_org_template',
|
||||||
showActions: true,
|
showActions: true,
|
||||||
@@ -28,7 +28,7 @@ export default function() {
|
|||||||
buttons: {
|
buttons: {
|
||||||
reset: {
|
reset: {
|
||||||
ngClick: 'vm.resetAllConfirm()',
|
ngClick: 'vm.resetAllConfirm()',
|
||||||
label: 'Reset All',
|
label: i18n._('Reset All'),
|
||||||
class: 'Form-button--left Form-cancelButton'
|
class: 'Form-button--left Form-cancelButton'
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
@@ -41,3 +41,4 @@ export default function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export default function() {
|
export default ['i18n', function(i18n) {
|
||||||
return {
|
return {
|
||||||
name: 'configuration_github_team_template',
|
name: 'configuration_github_team_template',
|
||||||
showActions: true,
|
showActions: true,
|
||||||
@@ -28,7 +28,7 @@ export default function() {
|
|||||||
buttons: {
|
buttons: {
|
||||||
reset: {
|
reset: {
|
||||||
ngClick: 'vm.resetAllConfirm()',
|
ngClick: 'vm.resetAllConfirm()',
|
||||||
label: 'Reset All',
|
label: i18n._('Reset All'),
|
||||||
class: 'Form-button--left Form-cancelButton'
|
class: 'Form-button--left Form-cancelButton'
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
@@ -41,3 +41,4 @@ export default function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export default function() {
|
export default ['i18n', function(i18n) {
|
||||||
return {
|
return {
|
||||||
name: 'configuration_github_template',
|
name: 'configuration_github_template',
|
||||||
showActions: true,
|
showActions: true,
|
||||||
@@ -24,7 +24,7 @@ export default function() {
|
|||||||
buttons: {
|
buttons: {
|
||||||
reset: {
|
reset: {
|
||||||
ngClick: 'vm.resetAllConfirm()',
|
ngClick: 'vm.resetAllConfirm()',
|
||||||
label: 'Reset All',
|
label: i18n._('Reset All'),
|
||||||
class: 'Form-button--left Form-cancelButton'
|
class: 'Form-button--left Form-cancelButton'
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
@@ -37,3 +37,4 @@ export default function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export default function() {
|
export default ['i18n', function(i18n) {
|
||||||
return {
|
return {
|
||||||
name: 'configuration_google_oauth_template',
|
name: 'configuration_google_oauth_template',
|
||||||
showActions: true,
|
showActions: true,
|
||||||
@@ -36,7 +36,7 @@ export default function() {
|
|||||||
buttons: {
|
buttons: {
|
||||||
reset: {
|
reset: {
|
||||||
ngClick: 'vm.resetAllConfirm()',
|
ngClick: 'vm.resetAllConfirm()',
|
||||||
label: 'Reset All',
|
label: i18n._('Reset All'),
|
||||||
class: 'Form-button--left Form-cancelButton'
|
class: 'Form-button--left Form-cancelButton'
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
@@ -49,3 +49,4 @@ export default function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export default function() {
|
export default ['i18n', function(i18n) {
|
||||||
return {
|
return {
|
||||||
// editTitle: 'Authorization Configuration',
|
// editTitle: 'Authorization Configuration',
|
||||||
name: 'configuration_ldap_template',
|
name: 'configuration_ldap_template',
|
||||||
@@ -84,7 +84,7 @@ export default function() {
|
|||||||
buttons: {
|
buttons: {
|
||||||
reset: {
|
reset: {
|
||||||
ngClick: 'vm.resetAllConfirm()',
|
ngClick: 'vm.resetAllConfirm()',
|
||||||
label: 'Reset All',
|
label: i18n._('Reset All'),
|
||||||
class: 'Form-button--left Form-cancelButton'
|
class: 'Form-button--left Form-cancelButton'
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
@@ -97,3 +97,4 @@ export default function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export default function() {
|
export default ['i18n', function(i18n) {
|
||||||
return {
|
return {
|
||||||
// editTitle: 'Authorization Configuration',
|
// editTitle: 'Authorization Configuration',
|
||||||
name: 'configuration_radius_template',
|
name: 'configuration_radius_template',
|
||||||
@@ -29,7 +29,7 @@ export default function() {
|
|||||||
buttons: {
|
buttons: {
|
||||||
reset: {
|
reset: {
|
||||||
ngClick: 'vm.resetAllConfirm()',
|
ngClick: 'vm.resetAllConfirm()',
|
||||||
label: 'Reset All',
|
label: i18n._('Reset All'),
|
||||||
class: 'Form-button--left Form-cancelButton'
|
class: 'Form-button--left Form-cancelButton'
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
@@ -42,3 +42,4 @@ export default function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export default function() {
|
export default ['i18n', function(i18n) {
|
||||||
return {
|
return {
|
||||||
name: 'configuration_saml_template',
|
name: 'configuration_saml_template',
|
||||||
showActions: true,
|
showActions: true,
|
||||||
@@ -56,7 +56,7 @@ export default function() {
|
|||||||
buttons: {
|
buttons: {
|
||||||
reset: {
|
reset: {
|
||||||
ngClick: 'vm.resetAllConfirm()',
|
ngClick: 'vm.resetAllConfirm()',
|
||||||
label: 'Reset All',
|
label: i18n._('Reset All'),
|
||||||
class: 'Form-button--left Form-cancelButton'
|
class: 'Form-button--left Form-cancelButton'
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
@@ -69,3 +69,4 @@ export default function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
export default [
|
export default [
|
||||||
'$scope', '$rootScope', '$state', '$stateParams', '$timeout', '$q', 'Alert', 'ClearScope',
|
'$scope', '$rootScope', '$state', '$stateParams', '$timeout', '$q', 'Alert', 'ClearScope',
|
||||||
'ConfigurationService', 'ConfigurationUtils', 'CreateDialog', 'CreateSelect2', 'ParseTypeChange', 'ProcessErrors', 'Store',
|
'ConfigurationService', 'ConfigurationUtils', 'CreateDialog', 'CreateSelect2', 'i18n', 'ParseTypeChange', 'ProcessErrors', 'Store',
|
||||||
'Wait', 'configDataResolve',
|
'Wait', 'configDataResolve',
|
||||||
//Form definitions
|
//Form definitions
|
||||||
'configurationAzureForm',
|
'configurationAzureForm',
|
||||||
@@ -22,7 +22,7 @@ export default [
|
|||||||
'ConfigurationUiForm',
|
'ConfigurationUiForm',
|
||||||
function(
|
function(
|
||||||
$scope, $rootScope, $state, $stateParams, $timeout, $q, Alert, ClearScope,
|
$scope, $rootScope, $state, $stateParams, $timeout, $q, Alert, ClearScope,
|
||||||
ConfigurationService, ConfigurationUtils, CreateDialog, CreateSelect2, ParseTypeChange, ProcessErrors, Store,
|
ConfigurationService, ConfigurationUtils, CreateDialog, CreateSelect2, i18n, ParseTypeChange, ProcessErrors, Store,
|
||||||
Wait, configDataResolve,
|
Wait, configDataResolve,
|
||||||
//Form definitions
|
//Form definitions
|
||||||
configurationAzureForm,
|
configurationAzureForm,
|
||||||
@@ -153,10 +153,10 @@ export default [
|
|||||||
if(!$scope[formTracker.currentFormName()].$dirty) {
|
if(!$scope[formTracker.currentFormName()].$dirty) {
|
||||||
active(setForm);
|
active(setForm);
|
||||||
} else {
|
} else {
|
||||||
var msg = 'You have unsaved changes. Would you like to proceed <strong>without</strong> saving?';
|
var msg = i18n._('You have unsaved changes. Would you like to proceed <strong>without</strong> saving?');
|
||||||
var title = 'Warning: Unsaved Changes';
|
var title = i18n._('Warning: Unsaved Changes');
|
||||||
var buttons = [{
|
var buttons = [{
|
||||||
label: "Discard changes",
|
label: i18n._("Discard changes"),
|
||||||
"class": "btn Form-cancelButton",
|
"class": "btn Form-cancelButton",
|
||||||
"id": "formmodal-cancel-button",
|
"id": "formmodal-cancel-button",
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
@@ -167,7 +167,7 @@ export default [
|
|||||||
active(setForm);
|
active(setForm);
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
label: "Save changes",
|
label: i18n._("Save changes"),
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
vm.formSave();
|
vm.formSave();
|
||||||
$scope[formTracker.currentFormName()].$setPristine();
|
$scope[formTracker.currentFormName()].$setPristine();
|
||||||
@@ -206,10 +206,10 @@ export default [
|
|||||||
|
|
||||||
var formCancel = function() {
|
var formCancel = function() {
|
||||||
if ($scope[formTracker.currentFormName()].$dirty === true) {
|
if ($scope[formTracker.currentFormName()].$dirty === true) {
|
||||||
var msg = 'You have unsaved changes. Would you like to proceed <strong>without</strong> saving?';
|
var msg = i18n._('You have unsaved changes. Would you like to proceed <strong>without</strong> saving?');
|
||||||
var title = 'Warning: Unsaved Changes';
|
var title = i18n._('Warning: Unsaved Changes');
|
||||||
var buttons = [{
|
var buttons = [{
|
||||||
label: "Discard changes",
|
label: i18n._("Discard changes"),
|
||||||
"class": "btn Form-cancelButton",
|
"class": "btn Form-cancelButton",
|
||||||
"id": "formmodal-cancel-button",
|
"id": "formmodal-cancel-button",
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
@@ -217,7 +217,7 @@ export default [
|
|||||||
$state.go('setup');
|
$state.go('setup');
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
label: "Save changes",
|
label: i18n._("Save changes"),
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
$scope.formSave();
|
$scope.formSave();
|
||||||
$('#FormModal-dialog').dialog('close');
|
$('#FormModal-dialog').dialog('close');
|
||||||
@@ -269,8 +269,8 @@ export default [
|
|||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
ProcessErrors($scope, error, status, formDefs[formTracker.getCurrent()],
|
ProcessErrors($scope, error, status, formDefs[formTracker.getCurrent()],
|
||||||
{
|
{
|
||||||
hdr: 'Error!',
|
hdr: i18n._('Error!'),
|
||||||
msg: 'There was an error resetting value. Returned status: ' + error.detail
|
msg: i18n._('There was an error resetting value. Returned status: ') + error.detail
|
||||||
});
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -347,8 +347,8 @@ export default [
|
|||||||
.catch(function(error, status) {
|
.catch(function(error, status) {
|
||||||
ProcessErrors($scope, error, status, formDefs[formTracker.getCurrent()],
|
ProcessErrors($scope, error, status, formDefs[formTracker.getCurrent()],
|
||||||
{
|
{
|
||||||
hdr: 'Error!',
|
hdr: i18n._('Error!'),
|
||||||
msg: 'Failed to save settings. Returned status: ' + status
|
msg: i18n._('Failed to save settings. Returned status: ') + status
|
||||||
});
|
});
|
||||||
saveDeferred.reject(error);
|
saveDeferred.reject(error);
|
||||||
})
|
})
|
||||||
@@ -375,8 +375,8 @@ export default [
|
|||||||
$scope[key] = !$scope[key];
|
$scope[key] = !$scope[key];
|
||||||
ProcessErrors($scope, error, status, formDefs[formTracker.getCurrent()],
|
ProcessErrors($scope, error, status, formDefs[formTracker.getCurrent()],
|
||||||
{
|
{
|
||||||
hdr: 'Error!',
|
hdr: i18n._('Error!'),
|
||||||
msg: 'Failed to save toggle settings. Returned status: ' + error.detail
|
msg: i18n._('Failed to save toggle settings. Returned status: ') + error.detail
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.finally(function() {
|
.finally(function() {
|
||||||
@@ -394,8 +394,8 @@ export default [
|
|||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
ProcessErrors($scope, error, status, formDefs[formTracker.getCurrent()],
|
ProcessErrors($scope, error, status, formDefs[formTracker.getCurrent()],
|
||||||
{
|
{
|
||||||
hdr: 'Error!',
|
hdr: i18n._('Error!'),
|
||||||
msg: 'There was an error resetting values. Returned status: ' + error.detail
|
msg: i18n._('There was an error resetting values. Returned status: ') + error.detail
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.finally(function() {
|
.finally(function() {
|
||||||
@@ -405,14 +405,14 @@ export default [
|
|||||||
|
|
||||||
var resetAllConfirm = function() {
|
var resetAllConfirm = function() {
|
||||||
var buttons = [{
|
var buttons = [{
|
||||||
label: "Cancel",
|
label: i18n._("Cancel"),
|
||||||
"class": "btn btn-default",
|
"class": "btn btn-default",
|
||||||
"id": "formmodal-cancel-button",
|
"id": "formmodal-cancel-button",
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
$('#FormModal-dialog').dialog('close');
|
$('#FormModal-dialog').dialog('close');
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
label: "Confirm Reset",
|
label: i18n._("Confirm Reset"),
|
||||||
onClick: function() {
|
onClick: function() {
|
||||||
resetAll();
|
resetAll();
|
||||||
$('#FormModal-dialog').dialog('close');
|
$('#FormModal-dialog').dialog('close');
|
||||||
@@ -420,8 +420,8 @@ export default [
|
|||||||
"class": "btn btn-primary",
|
"class": "btn btn-primary",
|
||||||
"id": "formmodal-reset-button"
|
"id": "formmodal-reset-button"
|
||||||
}];
|
}];
|
||||||
var msg = 'This will reset all configuration values to their factory defaults. Are you sure you want to proceed?';
|
var msg = i18n._('This will reset all configuration values to their factory defaults. Are you sure you want to proceed?');
|
||||||
var title = 'Confirm factory reset';
|
var title = i18n._('Confirm factory reset');
|
||||||
triggerModal(msg, title, buttons);
|
triggerModal(msg, title, buttons);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export default [
|
|||||||
'ConfigurationUtils',
|
'ConfigurationUtils',
|
||||||
'CreateSelect2',
|
'CreateSelect2',
|
||||||
'GenerateForm',
|
'GenerateForm',
|
||||||
|
'i18n',
|
||||||
function(
|
function(
|
||||||
$scope,
|
$scope,
|
||||||
$state,
|
$state,
|
||||||
@@ -21,7 +22,8 @@ export default [
|
|||||||
ConfigurationService,
|
ConfigurationService,
|
||||||
ConfigurationUtils,
|
ConfigurationUtils,
|
||||||
CreateSelect2,
|
CreateSelect2,
|
||||||
GenerateForm
|
GenerateForm,
|
||||||
|
i18n
|
||||||
) {
|
) {
|
||||||
var jobsVm = this;
|
var jobsVm = this;
|
||||||
var generator = GenerateForm;
|
var generator = GenerateForm;
|
||||||
@@ -76,7 +78,7 @@ export default [
|
|||||||
CreateSelect2({
|
CreateSelect2({
|
||||||
element: '#configuration_jobs_template_AD_HOC_COMMANDS',
|
element: '#configuration_jobs_template_AD_HOC_COMMANDS',
|
||||||
multiple: true,
|
multiple: true,
|
||||||
placeholder: 'Select commands',
|
placeholder: i18n._('Select commands'),
|
||||||
opts: opts
|
opts: opts
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export default function() {
|
export default ['i18n', function(i18n) {
|
||||||
return {
|
return {
|
||||||
showHeader: false,
|
showHeader: false,
|
||||||
name: 'configuration_jobs_template',
|
name: 'configuration_jobs_template',
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
buttons: {
|
buttons: {
|
||||||
reset: {
|
reset: {
|
||||||
ngClick: 'vm.resetAllConfirm()',
|
ngClick: 'vm.resetAllConfirm()',
|
||||||
label: 'Reset All',
|
label: i18n._('Reset All'),
|
||||||
class: 'Form-button--left Form-cancelButton'
|
class: 'Form-button--left Form-cancelButton'
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
@@ -64,4 +64,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}];
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export default function() {
|
export default ['i18n', function(i18n) {
|
||||||
return {
|
return {
|
||||||
showHeader: false,
|
showHeader: false,
|
||||||
name: 'configuration_system_template',
|
name: 'configuration_system_template',
|
||||||
@@ -38,7 +38,7 @@ export default function() {
|
|||||||
buttons: {
|
buttons: {
|
||||||
reset: {
|
reset: {
|
||||||
ngClick: 'vm.resetAllConfirm()',
|
ngClick: 'vm.resetAllConfirm()',
|
||||||
label: 'Reset All',
|
label: i18n._('Reset All'),
|
||||||
class: 'Form-button--left Form-cancelButton'
|
class: 'Form-button--left Form-cancelButton'
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
@@ -51,3 +51,4 @@ export default function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
'ConfigurationService',
|
'ConfigurationService',
|
||||||
'CreateSelect2',
|
'CreateSelect2',
|
||||||
'GenerateForm',
|
'GenerateForm',
|
||||||
|
'i18n',
|
||||||
function(
|
function(
|
||||||
$scope,
|
$scope,
|
||||||
$state,
|
$state,
|
||||||
@@ -19,7 +20,8 @@
|
|||||||
ConfigurationUiForm,
|
ConfigurationUiForm,
|
||||||
ConfigurationService,
|
ConfigurationService,
|
||||||
CreateSelect2,
|
CreateSelect2,
|
||||||
GenerateForm
|
GenerateForm,
|
||||||
|
i18n
|
||||||
) {
|
) {
|
||||||
var uiVm = this;
|
var uiVm = this;
|
||||||
var generator = GenerateForm;
|
var generator = GenerateForm;
|
||||||
@@ -71,7 +73,7 @@
|
|||||||
CreateSelect2({
|
CreateSelect2({
|
||||||
element: '#configuration_ui_template_PENDO_TRACKING_STATE',
|
element: '#configuration_ui_template_PENDO_TRACKING_STATE',
|
||||||
multiple: false,
|
multiple: false,
|
||||||
placeholder: 'Select commands',
|
placeholder: i18n._('Select commands'),
|
||||||
opts: [{
|
opts: [{
|
||||||
id: $scope.$parent.PENDO_TRACKING_STATE,
|
id: $scope.$parent.PENDO_TRACKING_STATE,
|
||||||
text: $scope.$parent.PENDO_TRACKING_STATE
|
text: $scope.$parent.PENDO_TRACKING_STATE
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export default function() {
|
export default ['i18n', function(i18n) {
|
||||||
return {
|
return {
|
||||||
showHeader: false,
|
showHeader: false,
|
||||||
name: 'configuration_ui_template',
|
name: 'configuration_ui_template',
|
||||||
@@ -32,7 +32,7 @@ export default function() {
|
|||||||
buttons: {
|
buttons: {
|
||||||
reset: {
|
reset: {
|
||||||
ngClick: 'vm.resetAllConfirm()',
|
ngClick: 'vm.resetAllConfirm()',
|
||||||
label: 'Reset All',
|
label: i18n._('Reset All'),
|
||||||
class: 'Form-button--left Form-cancelButton'
|
class: 'Form-button--left Form-cancelButton'
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
@@ -45,3 +45,4 @@ export default function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user