Applied same navigation/drop-down changes to jobs that we applied to inventory.

This commit is contained in:
chouseknecht
2013-09-20 16:42:58 -04:00
parent c47168dce2
commit 93e53034c1
7 changed files with 64 additions and 24 deletions

View File

@@ -275,7 +275,8 @@ function JobsEdit ($scope, $rootScope, $compile, $location, $log, $routeParams,
Rest.get({ params: {id: id} })
.success( function(data, status, headers, config) {
LoadBreadCrumbs({ path: '/job_templates/' + id, title: data.id + ' - ' + data.summary_fields.job_template.name });
//LoadBreadCrumbs({ path: '/jobs/' + id, title: data.id + ' - ' + data.summary_fields.job_template.name });
LoadBreadCrumbs();
for (var fld in form.fields) {
if (fld != 'variables' && data[fld] !== null && data[fld] !== undefined) {

View File

@@ -15,9 +15,15 @@ angular.module('JobFormDefinition', [])
name: 'jobs',
well: true,
twoColumns: true,
navigationLinks: {
details: {
href: "/#/jobs/{{ job_id }}",
label: 'Details',
icon: 'icon-zoom-in',
active: true,
ngShow: "job_id !== null"
},
hosts: {
href: "/#/jobs/{{ job_id }}/job_host_summaries",
label: 'Hosts',
@@ -30,7 +36,6 @@ angular.module('JobFormDefinition', [])
}
},
fields: {
name: {
label: 'Job Template',

View File

@@ -22,12 +22,19 @@ angular.module('JobEventsListDefinition', [])
details: {
href: "/#/jobs/{{ job_id }}",
label: 'Details',
icon: 'icon-zoom-in'
icon: 'icon-zoom-in',
ngShow: "job_id !== null"
},
summary: {
hosts: {
href: "/#/jobs/{{ job_id }}/job_host_summaries",
label: 'Hosts',
icon: 'icon-laptop'
},
events: {
href: "/#/jobs/{{ job_id }}/job_events",
label: 'Events',
active: true,
icon: 'icon-list-ul'
}
},

View File

@@ -23,11 +23,16 @@ angular.module('JobHostDefinition', [])
icon: 'icon-zoom-in',
ngShow: "job_id !== null"
},
hosts: {
href: "/#/jobs/{{ job_id }}/job_host_summaries",
label: 'Hosts',
active: true,
icon: 'icon-laptop'
},
events: {
href: "/#/jobs/{{ job_id }}/job_events",
label: 'Events',
icon: 'icon-list-ul',
ngShow: "job_id !== null"
icon: 'icon-list-ul'
}
},

View File

@@ -95,7 +95,7 @@ angular.module('JobsListDefinition', [])
type: 'DropDown',
label: 'View',
icon: 'icon-zoom-in',
'class': 'btn-xs',
'class': 'btn-default btn-xs',
options: [
{ ngClick: "viewSummary(\{{ job.id \}\}, '\{\{ job.summary_fields.job_template.name \}\}')", label: 'Host Summary',
ngHide: "job.status == 'new'" },