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:
Chris Houseknecht
2014-08-04 18:09:26 -04:00
parent 587fb35b59
commit 07b9f6b12c
7 changed files with 261 additions and 18 deletions

View 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