diff app/view/proben/Edit.js @ 53:73bc17de6ff2

Added store, view and model for kommentare. Load kommentare when opening a probe.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 28 May 2013 10:58:47 +0200
parents 792c34b3f5a9
children db26aeebe521
line wrap: on
line diff
--- a/app/view/proben/Edit.js	Mon May 27 14:59:59 2013 +0200
+++ b/app/view/proben/Edit.js	Tue May 28 10:58:47 2013 +0200
@@ -16,7 +16,8 @@
         'Lada.view.widgets.Datenbasis',
         'Lada.view.widgets.Probenart',
         'Lada.view.widgets.Betriebsart',
-        'Lada.view.widgets.Testdatensatz'
+        'Lada.view.widgets.Testdatensatz',
+        'Lada.view.kommentare.List'
     ],
 
     initComponent: function() {
@@ -263,35 +264,7 @@
                         padding: '10 10',
                         items: [
                             {
-                                xtype: 'grid',
-                                dockedItems: [
-                                    {
-                                        xtype: 'toolbar',
-                                        dock: 'top',
-                                        items: [
-                                            {
-                                                text: 'Hinzufügen',
-                                                icon: 'gfx/plus.gif'
-                                            },
-                                            {
-                                                text: 'Löschen',
-                                                icon: 'gfx/minus.gif'
-                                            }
-                                        ]
-                                    }
-                                ],
-                                columns: [
-                                    {
-                                        text: 'Erzeuger'
-                                    },
-                                    {
-                                        text: 'Datum'
-                                    },
-                                    {
-                                        text: 'Text',
-                                        flex: 1
-                                    }
-                                ]
+                                xtype: 'kommentarelist'
                             }
                         ]
                     },

http://lada.wald.intevation.org