changeset 199:30ba9a98d627

Added forms to create a Messstatus
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 08 Jul 2013 16:14:58 +0200
parents 808c24773713
children 945a727209d3
files app/view/status/Create.js app/view/status/CreateForm.js
diffstat 2 files changed, 56 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/status/Create.js	Mon Jul 08 16:14:58 2013 +0200
@@ -0,0 +1,22 @@
+Ext.define('Lada.view.status.Create', {
+    extend: 'Ext.window.Window',
+    alias: 'widget.statuscreate',
+
+    title: 'Maske für den Messstatus',
+    autoShow: true,
+    autoScroll: true,
+    modal: true,
+
+    initComponent: function() {
+        var form = Ext.create('Lada.view.status.CreateForm', this.initialConfig);
+        this.items = [form];
+        this.buttons = [
+            {
+                text: 'Speichern',
+                scope: form,
+                action: 'save'
+            }
+        ];
+        this.callParent();
+    }
+});
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/status/CreateForm.js	Mon Jul 08 16:14:58 2013 +0200
@@ -0,0 +1,34 @@
+Ext.define('Lada.view.status.CreateForm', {
+    extend: 'Lada.view.widgets.LadaForm',
+    requires : [
+        'Lada.view.widgets.Mst',
+        'Lada.view.widgets.Statuswert'
+    ],
+    model: 'Lada.model.Status',
+    initComponent: function() {
+        this.items = [
+            {
+                xtype: 'mst',
+                label: 'Erzeuger',
+                name: 'erzeuger'
+            },
+            {
+                xtype: 'statuswert',
+                label: 'Status',
+                name: 'status'
+            },
+            {
+                xtype: 'datefield',
+                label: 'Datum',
+                name: 'sdatum'
+            },
+            {
+                xtype: 'textarea',
+                label: 'Kommentar',
+                name: 'skommentar'
+            }
+        ];
+        this.callParent();
+    }
+});
+

http://lada.wald.intevation.org