Mercurial > lada > lada-client
comparison app/view/form/Messung.js @ 854:a031b98c7edc
Geplant-Checkbox for Messungen is now ReadOnly
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 10 Jul 2015 10:20:13 +0200 |
parents | 7f11b75e0188 |
children | f1e964b3aad6 |
comparison
equal
deleted
inserted
replaced
853:e5f72fb491f4 | 854:a031b98c7edc |
---|---|
106 width: 300, | 106 width: 300, |
107 labelWidth: 100 | 107 labelWidth: 100 |
108 }, { | 108 }, { |
109 xtype: 'chkbox', | 109 xtype: 'chkbox', |
110 name: 'geplant', | 110 name: 'geplant', |
111 readOnly: true, | |
111 margin: '0, 10, 5, 0', | 112 margin: '0, 10, 5, 0', |
112 fieldLabel: 'Geplant', | 113 fieldLabel: 'Geplant', |
113 width: 300, | 114 width: 300, |
114 labelWidth: 100 | 115 labelWidth: 100 |
115 }] | 116 }] |
169 setReadOnly: function(value) { | 170 setReadOnly: function(value) { |
170 this.down('tfield[name=nebenprobenNr]').setReadOnly(value); | 171 this.down('tfield[name=nebenprobenNr]').setReadOnly(value); |
171 this.down('messmethode[name=mmtId]').setReadOnly(value); | 172 this.down('messmethode[name=mmtId]').setReadOnly(value); |
172 this.down('datetime[name=messzeitpunkt]').setReadOnly(value); | 173 this.down('datetime[name=messzeitpunkt]').setReadOnly(value); |
173 this.down('numberfield[name=messdauer]').setReadOnly(value); | 174 this.down('numberfield[name=messdauer]').setReadOnly(value); |
174 this.down('chkbox[name=geplant]').setReadOnly(value); | |
175 if (!this.getForm().getRecord().get('owner')) { | 175 if (!this.getForm().getRecord().get('owner')) { |
176 //Only set this Field to Readonly when the User is NOT the Owner of the Record. | 176 //Only set this Field to Readonly when the User is NOT the Owner of the Record. |
177 this.down('chkbox[name=fertig]').setReadOnly(value); | 177 this.down('chkbox[name=fertig]').setReadOnly(value); |
178 } | 178 } |
179 } | 179 } |