cloudstack 3.0 new UI - configuration page, event page, storage page, system page, template page - apply converter toLocalDate() to date field.

This commit is contained in:
Jessica Wang 2011-12-21 14:25:31 -08:00
parent 1e3fd11369
commit b3fef67db9
5 changed files with 14 additions and 15 deletions

View File

@ -287,7 +287,7 @@
tags: { label: 'Storage tags' },
hosttags: { label: 'Host tags' },
domain: { label: 'Domain' },
created: { label: 'Created' }
created: { label: 'Created', converter: cloudStack.converters.toLocalDate }
}
],
@ -583,7 +583,7 @@
tags: { label: 'Storage tags' },
hosttags: { label: 'Host tags' },
domain: { label: 'Domain' },
created: { label: 'Created' }
created: { label: 'Created', converter: cloudStack.converters.toLocalDate }
}
],

View File

@ -22,7 +22,7 @@
type: { label: 'Type' },
description: { label: 'Description' },
username: { label: 'Initiated By' },
created: { label: 'Date' }
created: { label: 'Date', converter: cloudStack.converters.toLocalDate }
},
dataProvider: function(args) {
$.ajax({
@ -44,7 +44,7 @@
{
type: { label: 'Type' },
description: { label: 'Description' },
created: { label: 'Date' }
created: { label: 'Date', converter: cloudStack.converters.toLocalDate }
}
],
dataProvider: function(args) {
@ -61,10 +61,9 @@
listView: {
id: 'alerts',
label: 'Alerts',
fields: {
type: { label: 'Type' },
fields: {
description: { label: 'Description' },
sent: { label: 'Date' }
sent: { label: 'Date', converter: cloudStack.converters.toLocalDate }
},
dataProvider: function(args) {
$.ajax({
@ -84,9 +83,9 @@
title: 'Details',
fields: [
{
type: { label: 'Type' },
id: { label: 'ID' },
description: { label: 'Description' },
sent: { label: 'Date' }
sent: { label: 'Date', converter: cloudStack.converters.toLocalDate }
}
],
dataProvider: function(args) {

View File

@ -1053,7 +1053,7 @@
volumename: { label: 'Volume' },
state: { label: 'State', indicator: { 'BackedUp': 'on', 'Destroyed': 'off' } },
intervaltype: { label: 'Interval Type' },
created: { label: 'Date' }
created: { label: 'Date', converter: cloudStack.converters.toLocalDate }
},
actions: {

View File

@ -2015,7 +2015,7 @@
networkdomain: { label: 'Network domain' },
domain: { label: 'Domain' },
account: { label: 'Account' },
created: { label: 'Created' },
created: { label: 'Created', converter: cloudStack.converters.toLocalDate },
isredundantrouter: {
label: 'Redundant router',
converter: cloudStack.converters.toBooleanText
@ -4139,7 +4139,7 @@
linklocalip: { label: 'Link local IP' },
hostname: { label: 'Host' },
gateway: { label: 'Gateway' },
created: { label: 'Created' },
created: { label: 'Created', converter: cloudStack.converters.toLocalDate },
activeviewersessions: { label: 'Active sessions' }
}
],
@ -5315,7 +5315,7 @@
linklocalip: { label: 'Link local IP' },
hostname: { label: 'Host' },
gateway: { label: 'Gateway' },
created: { label: 'Created' },
created: { label: 'Created', converter: cloudStack.converters.toLocalDate },
activeviewersessions: { label: 'Active sessions' }
}
],

View File

@ -800,7 +800,7 @@
domain: { label: 'Domain' },
account: { label: 'Account' },
created: { label: 'Created' }
created: { label: 'Created', converter: cloudStack.converters.toLocalDate }
}
],
@ -1486,7 +1486,7 @@
domain: { label: 'Domain' },
account: { label: 'Account' },
created: { label: 'Created' }
created: { label: 'Created', converter: cloudStack.converters.toLocalDate }
}
],