diff app/view/form/Ortserstellung.js @ 1309:1bcc3a62e909

insert and preset OrtId field on Orterstellung
author Maximilian Krambach <mkrambach@intevation.de>
date Thu, 02 Feb 2017 16:59:25 +0100
parents c86fd6976264
children 9b50bf4c218b
line wrap: on
line diff
--- a/app/view/form/Ortserstellung.js	Thu Feb 02 16:43:53 2017 +0100
+++ b/app/view/form/Ortserstellung.js	Thu Feb 02 16:59:25 2017 +0100
@@ -35,6 +35,12 @@
             labelWidth: 125,
             value: Lada.netzbetreiber[0]
         }, {
+            xtype: 'textfield',
+            name: 'ortId',
+            maxLength: 10,
+            labelWidth: 125,
+            fieldLabel: i18n.getMsg('orte.ortId')
+        }, {
             xtype: 'checkbox',
             name: 'aktiv',
             fieldLabel: 'aktiv:'
@@ -265,7 +271,6 @@
         }
         this_panel.record.set('letzteAenderung', 0);
         this_panel.record.set('id', null);
-        this_panel.record.set('ortId', null);
         this_panel.record.set('netzbetreiberId', Lada.netzbetreiber[0]);
         this_panel.record.save({
             success: function(record, response) {

http://lada.wald.intevation.org