comparison app/view/widget/base/Datetime.js @ 650:67963fcb7739

Removed old DateTimeField and replaced them with the new one.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 18 Mar 2015 13:55:14 +0100
parents 291ac2e2bcf5
children f124d24c8ade
comparison
equal deleted inserted replaced
649:1f51b6020f8c 650:67963fcb7739
11 */ 11 */
12 Ext.define('Lada.view.widget.base.Datetime', { 12 Ext.define('Lada.view.widget.base.Datetime', {
13 extend: 'Ext.panel.Panel', 13 extend: 'Ext.panel.Panel',
14 alias: 'widget.datetime', 14 alias: 'widget.datetime',
15 requires: [ 15 requires: [
16 'Ext.ux.form.DateTimeField' 16 'Lada.view.widget.base.DateTimeField'
17 ], 17 ],
18 18
19 layout: 'hbox', 19 layout: 'hbox',
20 20
21 border: 0, 21 border: 0,
22 22
23 margin: '0, 0, 5, 0',
24
23 initComponent: function() { 25 initComponent: function() {
24 this.margin = this.fieldMargin; 26 var dateField = Ext.create('Lada.view.widget.base.DateTimeField', {
25 var dateField = Ext.create('Ext.ux.form.DateTimeField', { 27 format: this.format || 'd.m.Y H:i',
26 format: 'd.m.Y',
27 emptyText: 'Wählen Sie einen Zeitpunkt', 28 emptyText: 'Wählen Sie einen Zeitpunkt',
28 fieldLabel: this.fieldLabel, 29 fieldLabel: this.fieldLabel,
29 labelWidth: this.labelWidth, 30 labelWidth: this.labelWidth,
30 flex: 1, 31 flex: 1,
31 name: this.name, 32 name: this.name,

http://lada.wald.intevation.org