diff app/view/messungen/CreateForm.js @ 181:062aa9001eb6

Completed Messwertelist
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 04 Jul 2013 15:11:01 +0200
parents f1f0351b6e2f
children 2cf26580d75d
line wrap: on
line diff
--- a/app/view/messungen/CreateForm.js	Thu Jul 04 12:21:51 2013 +0200
+++ b/app/view/messungen/CreateForm.js	Thu Jul 04 15:11:01 2013 +0200
@@ -3,7 +3,10 @@
     model: 'Lada.model.Messung',
     requires: [
         'Lada.view.widgets.Messmethode',
-        'Lada.view.mkommentare.List'
+        'Lada.view.widgets.Testdatensatz',
+        'Lada.view.mkommentare.List',
+        'Lada.view.status.List',
+        'Lada.view.messwerte.List'
     ],
     initComponent: function() {
         this.items = [
@@ -28,15 +31,43 @@
                 fieldLabel: 'Messdauer'
             },
             {
-                xtype: 'textfield',
+                xtype: 'testdatensatz',
                 name: 'fertig',
                 fieldLabel: 'Fertig'
             },
             {
-                xtype: 'textfield',
+                xtype: 'testdatensatz',
                 name: 'geplant',
                 fieldLabel: 'Geplant'
             },
+            // Messwerte
+            {
+                xtype: 'fieldset',
+                title: 'Messwerte',
+                collapsible: true,
+                collapsed: false,
+                padding: '10 10',
+                items: [
+                    {
+                        xtype: 'messwertelist',
+                        parentId: this.modelId
+                    }
+                ]
+            },
+            // Status
+            {
+                xtype: 'fieldset',
+                title: 'Messungsstatus',
+                collapsible: true,
+                collapsed: false,
+                padding: '10 10',
+                items: [
+                    {
+                        xtype: 'statuslist',
+                        parentId: this.modelId
+                    }
+                ]
+            },
             // Messungskommentare
             {
                 xtype: 'fieldset',

http://lada.wald.intevation.org