mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 04:17:36 -02:30
License
Changed license nagging to a modal dialog with license status aware text and a form for updating the license key. Form provides JSON validation via CodeMirror.
This commit is contained in:
37
awx/ui/static/js/forms/LicenseUpdate.js
Normal file
37
awx/ui/static/js/forms/LicenseUpdate.js
Normal file
@@ -0,0 +1,37 @@
|
||||
/*********************************************
|
||||
* Copyright (c) 2014 AnsibleWorks, Inc.
|
||||
*
|
||||
* License.js
|
||||
* Form definition for Organization model
|
||||
*
|
||||
*
|
||||
*/
|
||||
angular.module('LicenseUpdateFormDefinition', [])
|
||||
.value('LicenseUpdateForm', {
|
||||
|
||||
name: 'license',
|
||||
well: false,
|
||||
|
||||
fields: {
|
||||
license_json: {
|
||||
label: 'License Key:',
|
||||
type: 'textarea',
|
||||
addRequired: true,
|
||||
editRequird: true,
|
||||
rows: 10,
|
||||
'default': '---'
|
||||
}
|
||||
},
|
||||
|
||||
buttons: {
|
||||
form_submit: {
|
||||
label: "Submit",
|
||||
"class": "pull-right btn-primary",
|
||||
ngClick: "submitLicenseKey()",
|
||||
ngDisabled: true
|
||||
}
|
||||
},
|
||||
|
||||
related: { }
|
||||
|
||||
}); //LicenseUpdateForm
|
||||
Reference in New Issue
Block a user