comparison app/view/form/Messung.js @ 715:605bc34b45a0

Disable the Fertig-Flag Checkbox in a Messung when the User is not the owner. Do not enable Form-Children when readonly is set to true. Parse login-response in app.js
author Dustin Demuth <dustin@intevation.de>
date Wed, 08 Apr 2015 15:28:25 +0200
parents f204f30b824a
children 7f11b75e0188
comparison
equal deleted inserted replaced
714:a8da0a5bacf9 715:605bc34b45a0
170 this.down('tfield[name=nebenprobenNr]').setReadOnly(value); 170 this.down('tfield[name=nebenprobenNr]').setReadOnly(value);
171 this.down('messmethode[name=mmtId]').setReadOnly(value); 171 this.down('messmethode[name=mmtId]').setReadOnly(value);
172 this.down('datetime[name=messzeitpunkt]').setReadOnly(value); 172 this.down('datetime[name=messzeitpunkt]').setReadOnly(value);
173 this.down('numberfield[name=messdauer]').setReadOnly(value); 173 this.down('numberfield[name=messdauer]').setReadOnly(value);
174 this.down('chkbox[name=geplant]').setReadOnly(value); 174 this.down('chkbox[name=geplant]').setReadOnly(value);
175 if (!this.getForm().getRecord().get('owner')) {
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);
178 }
175 } 179 }
176 }); 180 });

http://lada.wald.intevation.org