changeset 87:ee1d1305dcff

Added field for netzbetreiber. Is needed because of FK constraints.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 11 Jun 2013 13:20:27 +0200
parents eb40b74f871a
children 8594cd215732
files app/view/proben/CreateForm.js app/view/proben/EditForm.js app/view/widgets/LadaForm.js
diffstat 3 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/proben/CreateForm.js	Tue Jun 11 11:43:14 2013 +0200
+++ b/app/view/proben/CreateForm.js	Tue Jun 11 13:20:27 2013 +0200
@@ -65,6 +65,12 @@
                             },
                             {
                                 xtype: 'textfield',
+                                name: 'netzbetreiberId',
+                                fieldLabel: 'Netzbetreiber',
+                                allowBlank: false
+                            },
+                            {
+                                xtype: 'textfield',
                                 name: 'x11',
                                 fieldLabel: 'Datensatzerzeuger'
                             }
--- a/app/view/proben/EditForm.js	Tue Jun 11 11:43:14 2013 +0200
+++ b/app/view/proben/EditForm.js	Tue Jun 11 13:20:27 2013 +0200
@@ -65,6 +65,12 @@
                             },
                             {
                                 xtype: 'textfield',
+                                name: 'netzbetreiberId',
+                                fieldLabel: 'Netzbetreiber',
+                                allowBlank: false
+                            },
+                            {
+                                xtype: 'textfield',
                                 name: 'x11',
                                 fieldLabel: 'Datensatzerzeuger'
                             }
--- a/app/view/widgets/LadaForm.js	Tue Jun 11 11:43:14 2013 +0200
+++ b/app/view/widgets/LadaForm.js	Tue Jun 11 13:20:27 2013 +0200
@@ -21,6 +21,7 @@
     errors: null,
     warnings: null,
     message: null,
+    readonly: false,
 
     initComponent: function() {
 
@@ -111,6 +112,7 @@
         this.errors = this.translateReturnCodes(operation.request.scope.reader.jsonData["errors"]);
         this.warnings = this.translateReturnCodes(operation.request.scope.reader.jsonData["warnings"]);
         this.message = Lada.getApplication().bundle.getMsg(operation.request.scope.reader.jsonData["message"]);
+        //this.setReadOnly(true);
     }
 
 });

http://lada.wald.intevation.org