From 134b10ed6b5de4a5a4e6dc654db25c376c0f696e Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Fri, 10 Jun 2016 14:10:46 -0400 Subject: [PATCH 1/2] Removed scan job templates related tab from inventory edit --- awx/ui/client/src/forms/Inventories.js | 80 -------------------------- 1 file changed, 80 deletions(-) diff --git a/awx/ui/client/src/forms/Inventories.js b/awx/ui/client/src/forms/Inventories.js index 6110611265..dd9fd44e51 100644 --- a/awx/ui/client/src/forms/Inventories.js +++ b/awx/ui/client/src/forms/Inventories.js @@ -78,82 +78,6 @@ export default }, related: { - scan_job_templates: { - awToolTip: 'Please save before adding a scan job template', - dataPlacement: 'top', - basePath: 'inventories/:id/scan_job_templates', - type: 'collection', - title: 'Scan Job Templates', - iterator: 'scan_job_template', - index: false, - open: false, - - actions: { - add: { - ngClick: "addScanJob()", - label: 'Add', - awToolTip: 'Add a scan job template', - actionClass: 'btn List-buttonSubmit', - buttonContent: '+ ADD' - } - }, - - fields: { - smart_status: { - label: 'Status', - columnClass: 'List-tableCell', - searchable: false, - nosort: true, - ngInclude: "'/static/partials/scan-job-template-smart-status.html'", - type: 'template' - }, - name: { - key: true, - label: 'Name', - linkTo: '/#/inventories/{{inventory_id}}/job_templates/{{scan_job_template.id}}' - }, - description: { - label: 'Description' - } - }, - - fieldActions: { - submit: { - label: 'Launch', - ngClick: "launchScanJob()", - awToolTip: 'Launch the scan job template', - 'class': 'btn btn-default' - }, - schedule: { - label: 'Schedule', - ngClick: 'scheduleScanJob()', - awToolTip: 'Schedule future job template runs', - dataPlacement: 'top', - }, - copy: { - label: 'Copy', - ngClick: "copyScanJobTemplate()", - "class": 'btn-danger btn-xs', - awToolTip: 'Copy template', - dataPlacement: 'top', - ngHide: 'job_template.summary_fields.can_copy === false' - }, - edit: { - label: 'Edit', - ngClick: "editScanJob()", - icon: 'icon-edit', - awToolTip: 'Edit the scan job template', - 'class': 'btn btn-default' - }, - "delete": { - label: 'Delete', - ngClick: "deleteScanJob()", - icon: 'icon-trash', - "class": 'btn-danger', - awToolTip: 'Delete the scan job template' - } - } - }, permissions: { awToolTip: 'Please save before assigning permissions', dataPlacement: 'top', @@ -201,10 +125,6 @@ export default relatedSets: function(urls) { return { - scan_job_templates: { - iterator: 'scan_job_template', - url: urls.scan_job_templates - }, permissions: { iterator: 'permission', url: urls.access_list From c0a2955b7e8cdd71e2f7ef6725e0e59e1c09f35b Mon Sep 17 00:00:00 2001 From: Ken Hoes Date: Tue, 14 Jun 2016 10:28:45 -0400 Subject: [PATCH 2/2] Changed no module data message in system tracking --- awx/ui/client/src/system-tracking/system-tracking.partial.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/awx/ui/client/src/system-tracking/system-tracking.partial.html b/awx/ui/client/src/system-tracking/system-tracking.partial.html index 1e5615bdf3..a1823923a5 100644 --- a/awx/ui/client/src/system-tracking/system-tracking.partial.html +++ b/awx/ui/client/src/system-tracking/system-tracking.partial.html @@ -1,8 +1,7 @@
-

- To setup or run scan jobs, edit the "{{inventory.name}}" inventory and select "Scan Job Templates." + To set up scan jobs, create a job template of type 'scan' that targets the "{{inventory.name}}" inventory.