diff app/view/mkommentare/CreateForm.js @ 207:62e116cd3e3b

Inheritance of Mkommentare from Kommentare does not work as expected. So write mostly duplicated code for MKommentare.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 09 Jul 2013 15:26:29 +0200
parents
children bd9ee11c74b4
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/mkommentare/CreateForm.js	Tue Jul 09 15:26:29 2013 +0200
@@ -0,0 +1,24 @@
+Ext.define('Lada.view.mkommentare.CreateForm', {
+    extend: 'Lada.view.widgets.LadaForm',
+    model: 'Lada.model.MKommentar',
+    initComponent: function() {
+        this.items = [
+            {
+                xtype: 'textfield',
+                name: 'erzeuger',
+                fieldLabel: 'Erzeuger'
+            },
+            {
+                xtype: 'datefield',
+                name: 'kdatum',
+                fieldLabel: 'Datum'
+            },
+            {
+                xtype: 'textareafield',
+                name: 'ktext',
+                fieldLabel: 'Text'
+            }
+        ];
+        this.callParent();
+    }
+});

http://lada.wald.intevation.org