comparison app/view/form/Messprogramm.js @ 797:b8fd43021c29

Added a Window to alter Orte of a Messprogramm
author Dustin Demuth <dustin@intevation.de>
date Wed, 20 May 2015 16:48:03 +0200
parents d4eb8fb99b5e
children c135201940ee
comparison
equal deleted inserted replaced
796:7267bae1d43f 797:b8fd43021c29
23 'Lada.view.widget.base.TextField', 23 'Lada.view.widget.base.TextField',
24 'Lada.view.widget.base.FieldSet', 24 'Lada.view.widget.base.FieldSet',
25 'Lada.model.Messprogramm', 25 'Lada.model.Messprogramm',
26 'Lada.model.MmtMessprogramm', 26 'Lada.model.MmtMessprogramm',
27 'Lada.view.widget.Probenintervall', 27 'Lada.view.widget.Probenintervall',
28 'Lada.view.widget.Location',
28 'Lada.view.widget.ProbenintervallSlider', 29 'Lada.view.widget.ProbenintervallSlider',
29 'Lada.view.widget.base.Datetime', 30 'Lada.view.widget.base.Datetime',
30 'Lada.view.widget.base.DateField' 31 'Lada.view.widget.base.DateField'
31 ], 32 ],
32 33
34 minWidth: 650, 35 minWidth: 650,
35 margin: 5, 36 margin: 5,
36 border: 0, 37 border: 0,
37 38
38 recordId: null, 39 recordId: null,
40 ortWindow: null,
39 41
40 trackResetOnLoad: true, 42 trackResetOnLoad: true,
41 43
42 initComponent: function() { 44 initComponent: function() {
43 var me = this; 45 var me = this;
96 fieldLabel: i18n.getMsg('name'), 98 fieldLabel: i18n.getMsg('name'),
97 labelWidth: 135, 99 labelWidth: 135,
98 allowBlank: false, 100 allowBlank: false,
99 editable: true 101 editable: true
100 }, { 102 }, {
101 xtype: 'textarea', //TODO: we need a widget which is capable of handling errormsg. 103 xtype: 'textarea', //TODO: we might need a widget which is capable of handling errormsg.
102 name: 'probeKommentar', 104 name: 'probeKommentar',
103 labelAlign: 'top', 105 labelAlign: 'top',
104 fieldLabel: i18n.getMsg('probeKommentar'), 106 fieldLabel: i18n.getMsg('probeKommentar'),
105 labelwidth: 135, 107 labelwidth: 135,
106 anchor: '100%' 108 anchor: '100%'
109 }, {
110 layout: 'hbox',
111 border: 0,
112 align: 'stretch',
113 items: [{
114 xtype: 'location',
115 name: 'ortId',
116 fieldLabel: i18n.getMsg('ortId'),
117 labelWidth: 80,
118 allowBlank: true,
119 forceSelection: true,
120 editable: false
121 }, {
122 xtype: 'button',
123 name: 'ortIdButton',
124 margin: '0 0 0 5',
125 text: i18n.getMsg('messprogrammort.button.title'),
126 action: 'ort'
127 }]
107 }] 128 }]
108 }, { 129 }, {
109 border: 0, 130 border: 0,
110 width: '50%', 131 width: '50%',
111 minWidth: 300, 132 minWidth: 300,

http://lada.wald.intevation.org