Job event detail page now working. Search expanded to work with boolean an integer types. Added new form generator layout. Fixed pagination bugs. Job cancel/delete working.

This commit is contained in:
chouseknecht
2013-05-21 02:57:34 -04:00
parent 3d3782fcee
commit 8343d20c60
13 changed files with 659 additions and 393 deletions

View File

@@ -13,26 +13,27 @@ angular.module('JobEventFormDefinition', [])
editTitle: '{{ name }} Events', //Legend in edit mode
name: 'job_events',
well: true,
formInline: true,
fieldsAsHeader: true,
fields: {
job: {
label: 'Job ID',
label: 'Job',
type: 'text',
class: 'span1',
readonly: true
},
name: {
label: 'Name',
job_name: {
type: 'text',
sourceModel: 'job',
sourceField: 'name',
class: 'span5',
readonly: true
},
description: {
label: 'Description',
job_description: {
type: 'text',
sourceModel: 'job',
sourceField: 'description',
class: 'span5',
readonly: true
}
},
@@ -43,29 +44,54 @@ angular.module('JobEventFormDefinition', [])
items: {
event: {
set: 'job_events',
iterator: 'job_event',
label: 'Event',
type: 'text',
readonly: true
},
created: {
label: 'Event Timestamp',
type: 'text',
readonly: true
},
event_status: {
label: 'Event Status <span class="job-detail-status job-\{\{ status \}\}"><i class="icon-circle"></i> \{\{ status \}\}</span>',
type: 'text',
readonly: true,
control: false
},
event_data: {
label: 'Event Data',
type: 'textarea',
class: 'span12',
rows: 10
}
fields: {
id: {
label: 'Event ID',
type: 'text',
readonly: true,
class: 'span2',
key: true,
searchType: 'int'
},
created: {
label: 'Event Timestamp',
type: 'text',
readonly: true,
class: 'span4'
},
event: {
label: 'Event',
type: 'text',
readonly: true
},
host: {
label: 'Host',
type: 'text',
readonly: true
},
event_status: {
label: 'Event Status',
type: 'text',
class: 'job-\{\{ event_status \}\}',
readonly: true,
searchField: 'failed',
searchType: 'boolean',
searchOptions: [{ name: "success", value: 0 }, { name: "failed", value: 1 }],
},
event_data: {
label: 'Event Data',
type: 'textarea',
class: 'span12',
rows: 10,
readonly: true
}
}
}
},
related: { //related colletions (and maybe items?)
}