diff app/view/proben/Edit.js @ 18:9e1a40312bbe

Implemented a basic edit dialog. Data will be set to data/proben2.json url which is currently just a dummy file to make to request work. But currently no data is actually saved. The urls need to be replaced with the correct urls in the application backend.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 06 May 2013 16:41:39 +0200
parents
children a05625ae08b1
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/proben/Edit.js	Mon May 06 16:41:39 2013 +0200
@@ -0,0 +1,41 @@
+Ext.define('Lada.view.proben.Edit', {
+    extend: 'Ext.window.Window',
+    alias: 'widget.probenedit',
+
+    title: 'Maske für §3-Proben',
+    layout: 'fit',
+    autoShow: true,
+
+    initComponent: function() {
+        this.items = [
+            {
+                xtype: 'form',
+                items: [
+                    {
+                        xtype: 'textfield',
+                        name : 'probeId',
+                        fieldLabel: 'ID'
+                    },
+                    {
+                        xtype: 'textfield',
+                        name : 'datenbasisId',
+                        fieldLabel: 'Datenbasis'
+                    }
+                ]
+            }
+        ];
+
+        this.buttons = [
+            {
+                text: 'Speichern',
+                action: 'save'
+            },
+            {
+                text: 'Verwerfen',
+                scope: this,
+                handler: this.close
+            }
+        ];
+        this.callParent(arguments);
+    }
+});

http://lada.wald.intevation.org