changeset 595:a81dafe06d1d

Add status to messung edit window.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 12 Mar 2015 09:47:42 +0100
parents 89b337cbfb5d
children b0a3580a41e9
files app.js app/view/window/MessungEdit.js
diffstat 2 files changed, 11 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/app.js	Thu Mar 12 09:46:17 2015 +0100
+++ b/app.js	Thu Mar 12 09:47:42 2015 +0100
@@ -108,6 +108,7 @@
         'Lada.controller.grid.Probenzusatzwert',
         'Lada.controller.grid.PKommentar',
         'Lada.controller.grid.Messung',
-        'Lada.controller.grid.Messwert'
+        'Lada.controller.grid.Messwert',
+        'Lada.controller.grid.Status'
     ]
 });
--- a/app/view/window/MessungEdit.js	Thu Mar 12 09:46:17 2015 +0100
+++ b/app/view/window/MessungEdit.js	Thu Mar 12 09:47:42 2015 +0100
@@ -15,9 +15,9 @@
 
     requires: [
       'Lada.view.form.Messung',
-      'Lada.view.grid.Messwert'
-   //   'Lada.view.grid.Messstatus',
    //   'Lada.view.grid.MKommentar'
+      'Lada.view.grid.Messwert',
+      'Lada.view.grid.Status',
     ],
 
     collapsible: true,
@@ -59,12 +59,16 @@
                     xtype: 'messwertgrid',
                     recordId: this.record.get('id')
                 }]
-                // TODO
             }, {
                 xtype: 'fset',
                 name: 'messungstatus',
-                title: 'Messungstatus - Stub'
-                // TODO
+                title: 'Status',
+                padding: '5, 5',
+                margin: 5,
+                items: [{
+                    xtype: 'statusgrid',
+                    recordId: this.record.get('id')
+                }]
            }, {
                 xtype: 'fset',
                 name: 'messungskommentare',

http://lada.wald.intevation.org