diff --git a/awx/ui/static/js/app.js b/awx/ui/static/js/app.js index add7d38285..07a3052aec 100644 --- a/awx/ui/static/js/app.js +++ b/awx/ui/static/js/app.js @@ -67,7 +67,6 @@ angular.module('ansible', [ 'md5Helper', 'AccessHelper', 'SelectionHelper', - 'LicenseFormDefinition', 'License', 'HostGroupsFormDefinition', 'JobStatusWidget', diff --git a/awx/ui/static/js/forms/License.js b/awx/ui/static/js/forms/License.js deleted file mode 100644 index 2d6e34df71..0000000000 --- a/awx/ui/static/js/forms/License.js +++ /dev/null @@ -1,88 +0,0 @@ -/********************************************* - * Copyright (c) 2013 AnsibleWorks, Inc. - * - * License.js - * Form definition for LIcense model - * - * - */ -angular.module('LicenseFormDefinition', []) - .value( - 'LicenseForm', { - - name: 'license', - well: false, - well: false, - forceListeners: true, - 'class': 'horizontal-narrow', - - fields: { - license_status: { - label: 'Status', - type: 'custom', - control: '
\{\{ license_status \}\}
', - readonly: true, - section: 'License' - }, - license_key: { - label: 'Key', - type: 'textarea', - section: 'License', - 'class': 'modal-input-xlarge', - readonly: true - }, - license_date: { - label: 'Expires On', - type: 'text', - readonly: true, - section: 'License' - }, - time_remaining: { - label: 'Time Left', - type: 'text', - readonly: true, - section: 'License' - }, - available_instances: { - label: 'Available', - type: 'text', - readonly: true, - section: 'Managed Hosts' - }, - current_instances: { - label: 'Used', - type: 'text', - readonly: true, - section: 'Managed Hosts' - }, - free_instances: { - label: 'Remaining', - type: 'text', - readonly: true, - section: 'Managed Hosts', - controlNGClass: 'free_instances_class', - labelNGClass: 'free_instances_class' - }, - company_name: { - label: 'Company', - type: 'text', - readonly: true, - section: 'Contact Info' - }, - contact_name: { - label: 'Contact', - type: 'text', - readonly: true, - section: 'Contact Info' - }, - contact_email: { - label: 'Contact Email', - type: 'text', - readonly: true, - section: 'Contact Info' - } - } - - }); //form - - \ No newline at end of file diff --git a/awx/ui/static/lib/ansible/license.js b/awx/ui/static/lib/ansible/license.js index 959ff95ae7..aa0e28bcff 100644 --- a/awx/ui/static/lib/ansible/license.js +++ b/awx/ui/static/lib/ansible/license.js @@ -22,18 +22,17 @@ angular.module('License', ['RestServices', 'Utilities', 'FormGenerator', 'Prompt forceListeners: true, fields: { license_status: { - label: 'Status', type: 'custom', - control: '
\{\{ license_status \}\}
', + control: '
\{\{ license_status \}\}
', readonly: true, section: 'License' }, license_key: { label: 'Key', type: 'textarea', - section: 'License', 'class': 'modal-input-xlarge', - readonly: true + readonly: true, + section: 'License' }, license_date: { label: 'Expires On',