Mercurial > lada > lada-client
comparison app/view/form/Messprogramm.js @ 1180:1ae5e4f0f2c8
Set allowBlank to false for mandatory fields to be filled by the user.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 04 Aug 2016 17:15:57 +0200 |
parents | e552e82ceb8a |
children | 0a7f0a09151c |
comparison
equal
deleted
inserted
replaced
1179:08bd9f1c791b | 1180:1ae5e4f0f2c8 |
---|---|
137 width : '35%', | 137 width : '35%', |
138 labelWidth: 80, | 138 labelWidth: 80, |
139 }, { | 139 }, { |
140 xtype: 'datenbasis', | 140 xtype: 'datenbasis', |
141 editable: false, | 141 editable: false, |
142 allowBlank: false, | |
142 name: 'datenbasisId', | 143 name: 'datenbasisId', |
143 fieldLabel: i18n.getMsg('datenbasisId'), | 144 fieldLabel: i18n.getMsg('datenbasisId'), |
144 margin : '0, 5, 5, 5', | 145 margin : '0, 5, 5, 5', |
145 width : '20%', | 146 width : '20%', |
146 labelWidth: 65 | 147 labelWidth: 65 |
205 }, | 206 }, |
206 border: 0, | 207 border: 0, |
207 margin: '0, 0, 0, 0', | 208 margin: '0, 0, 0, 0', |
208 items: [{ | 209 items: [{ |
209 xtype: 'probenintervall', | 210 xtype: 'probenintervall', |
211 allowBlank: false, | |
210 fieldLabel: i18n.getMsg('probenintervall'), | 212 fieldLabel: i18n.getMsg('probenintervall'), |
211 margin: '0, 10, 5, 5', | 213 margin: '0, 10, 5, 5', |
212 labelWidth: 50, | 214 labelWidth: 50, |
213 width: '40%', | 215 width: '40%', |
214 name: 'probenintervall' | 216 name: 'probenintervall' |
215 }, { | 217 }, { |
216 xtype: 'numfield', | 218 xtype: 'numfield', |
217 allowDecimals: false, | 219 allowDecimals: false, |
220 allowBlank: false, | |
218 fieldLabel: i18n.getMsg('teilintervallVon'), | 221 fieldLabel: i18n.getMsg('teilintervallVon'), |
219 margin: '0, 10, 5, 10', | 222 margin: '0, 10, 5, 10', |
220 labelWidth: 90, | 223 labelWidth: 90, |
221 width: '28%', | 224 width: '28%', |
222 name: 'teilintervallVon', | 225 name: 'teilintervallVon', |
223 period: 'start' | 226 period: 'start' |
224 }, { | 227 }, { |
225 xtype: 'numfield', | 228 xtype: 'numfield', |
226 allowDecimals: false, | 229 allowDecimals: false, |
230 allowBlank: false, | |
227 fieldLabel: i18n.getMsg('teilintervallBis'), | 231 fieldLabel: i18n.getMsg('teilintervallBis'), |
228 margin: '0, 15, 5, 5', | 232 margin: '0, 15, 5, 5', |
229 labelWidth: 18, | 233 labelWidth: 18, |
230 width: '15%', | 234 width: '15%', |
231 name: 'teilintervallBis', | 235 name: 'teilintervallBis', |
257 align: 'stretch' | 261 align: 'stretch' |
258 }, | 262 }, |
259 border: 0, | 263 border: 0, |
260 items: [{ | 264 items: [{ |
261 xtype: 'datetime', | 265 xtype: 'datetime', |
266 allowBlank: false, | |
262 fieldLabel: i18n.getMsg('gueltigVon'), | 267 fieldLabel: i18n.getMsg('gueltigVon'), |
263 margin: '0, 30, 5, 5', | 268 margin: '0, 30, 5, 5', |
264 labelWidth: 90, | 269 labelWidth: 90, |
265 name: 'gueltigVon', | 270 name: 'gueltigVon', |
266 format: 'd.m.Y', | 271 format: 'd.m.Y', |
267 period: 'start' | 272 period: 'start' |
268 }, { | 273 }, { |
269 xtype: 'datetime', | 274 xtype: 'datetime', |
275 allowBlank: false, | |
270 fieldLabel: i18n.getMsg('gueltigBis'), | 276 fieldLabel: i18n.getMsg('gueltigBis'), |
271 margin: '0, 5, 5, 5', | 277 margin: '0, 5, 5, 5', |
272 labelWidth: 40, | 278 labelWidth: 40, |
273 name: 'gueltigBis', | 279 name: 'gueltigBis', |
274 format: 'd.m.Y', | 280 format: 'd.m.Y', |
290 items: [{ | 296 items: [{ |
291 xtype: 'umwelt', | 297 xtype: 'umwelt', |
292 name: 'umwId', | 298 name: 'umwId', |
293 fieldLabel: i18n.getMsg('umwId'), | 299 fieldLabel: i18n.getMsg('umwId'), |
294 labelWidth: 125, | 300 labelWidth: 125, |
295 allowBlank: false, | |
296 editable: true, | 301 editable: true, |
297 listeners: { | 302 listeners: { |
298 dirtychange: { | 303 dirtychange: { |
299 fn: this.updateOnChange, | 304 fn: this.updateOnChange, |
300 scope: me | 305 scope: me |
363 items: [{ | 368 items: [{ |
364 xtype: 'location', | 369 xtype: 'location', |
365 name: 'ortId', | 370 name: 'ortId', |
366 fieldLabel: i18n.getMsg('ortId'), | 371 fieldLabel: i18n.getMsg('ortId'), |
367 labelWidth: 80, | 372 labelWidth: 80, |
368 allowBlank: true, | 373 allowBlank: false, |
369 forceSelection: true, | 374 forceSelection: true, |
370 editable: false, | 375 editable: false, |
371 columnWidth: '0.75' | 376 columnWidth: '0.75' |
372 }, { | 377 }, { |
373 xtype: 'button', | 378 xtype: 'button', |