Scan job templates

Implemented saving a job template as type = scan. Can add/edit these jobs. Also on inventory properties accordion you can see the list of scan job templates for the inventory.
This commit is contained in:
Jared Tabor
2015-03-18 14:08:54 -04:00
parent 3cd5cd5184
commit 0948846530
8 changed files with 179 additions and 34 deletions

View File

@@ -102,7 +102,9 @@ export default
awPopOver: "<p>Select the project containing the playbook you want this job to execute.</p>",
dataTitle: 'Project',
dataPlacement: 'right',
dataContainer: "body"
dataContainer: "body",
ngDisabled: 'default_scan === true',
ngRequired: 'default_scan === false'
},
playbook: {
label: 'Playbook',
@@ -114,7 +116,20 @@ export default
awPopOver: "<p>Select the playbook to be executed by this job.</p>",
dataTitle: 'Playbook',
dataPlacement: 'right',
dataContainer: "body"
dataContainer: "body",
ngDisabled: 'default_scan === true',
ngRequired: 'default_scan === false'
},
default_scan: {
label: "Use default scan job project and playbook",
type: 'checkbox',
ngChange: 'toggleScanInfo()',
ngShow: 'job_type.value === "scan"',
column: 1,
awPopOver: "<p>Scan jobs templates use a default project and default playbook. Uncheck this box to override these defaults.</p>",
dataTitle: 'Scan jobs',
dataPlacement: 'right',
dataContainer: "body"
},
credential: {
label: 'Machine Credential',