comparison app/view/orte/CreateForm.js @ 154:16ba7e2465fd

Implemented creating and editing new l_ort. Created editing orte.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 02 Jul 2013 15:28:41 +0200
parents 26ac4c99f8c4
children d6d74718a102
comparison
equal deleted inserted replaced
153:e9fb4814153a 154:16ba7e2465fd
24 if ( ort != undefined ) { 24 if ( ort != undefined ) {
25 console.log('Found ort'); 25 console.log('Found ort');
26 for (var i = fields.length - 1; i >= 0; i--){ 26 for (var i = fields.length - 1; i >= 0; i--){
27 ffield = form.findField("ort_"+fields[i]); 27 ffield = form.findField("ort_"+fields[i]);
28 ffield.setValue(ort.get(fields[i])); 28 ffield.setValue(ort.get(fields[i]));
29 ffield.setReadOnly(true);
30 } 29 }
31 } else {
32 this.setReadOnly(false);
33 } 30 }
34 } 31 }
35 } 32 }
36 }, 33 },
37 { 34 {
38 xtype: 'textfield', 35 xtype: 'textfield',
39 name: 'ortsTyp', 36 name: 'ortsTyp',
40 maxLength: 1, 37 maxLength: 1,
41 fieldLabel: 'Type' 38 fieldLabel: 'Typ'
42 }, 39 },
43 { 40 {
44 xtype: 'textareafield', 41 xtype: 'textareafield',
45 name: 'ortszusatztext', 42 name: 'ortszusatztext',
46 maxLength: 100, 43 maxLength: 100,

http://lada.wald.intevation.org