diff app/view/form/Probe.js @ 926:c75f13578315

Changed 'Solldatum' fields to readonly fields without default value.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 11 Sep 2015 14:18:52 +0200
parents 9265637fe6c0
children e2a26f9733ee
line wrap: on
line diff
--- a/app/view/form/Probe.js	Fri Sep 11 12:20:20 2015 +0200
+++ b/app/view/form/Probe.js	Fri Sep 11 14:18:52 2015 +0200
@@ -193,20 +193,24 @@
                         },
                         items: [{
                             xtype: 'datetime',
+                            emptyText: ' ',
                             fieldLabel: 'Sollzeitraum von',
                             labelWidth: 120,
                             margin: '0, 5, 5, 5',
                             name: 'solldatumBeginn',
                             format: 'd.m.Y H:i',
-                            period: 'start'
+                            period: 'start',
+                            readOnly: true
                         }, {
                             xtype: 'datetime',
+                            emptyText: ' ',
                             fieldLabel: 'bis',
                             labelWidth: 10,
                             margin: '0, 5, 5, 5',
                             name: 'solldatumEnde',
                             format: 'd.m.Y H:i',
-                            period: 'end'
+                            period: 'end',
+                            readOnly: true
                         }]
                     }, {
                         xtype: 'fset',
@@ -427,8 +431,6 @@
         this.down('cbox[name=umwId]').setReadOnly(value);
         this.down('datetime[name=probeentnahmeBeginn]').setReadOnly(value);
         this.down('datetime[name=probeentnahmeEnde]').setReadOnly(value);
-        this.down('datetime[name=solldatumBeginn]').setReadOnly(value);
-        this.down('datetime[name=solldatumEnde]').setReadOnly(value);
         this.down('numberfield[name=probeNehmerId]').setReadOnly(value);
 
         //Deskriptoren

http://lada.wald.intevation.org