diff app/view/form/Messprogramm.js @ 797:b8fd43021c29

Added a Window to alter Orte of a Messprogramm
author Dustin Demuth <dustin@intevation.de>
date Wed, 20 May 2015 16:48:03 +0200
parents d4eb8fb99b5e
children c135201940ee
line wrap: on
line diff
--- a/app/view/form/Messprogramm.js	Wed May 20 14:19:12 2015 +0200
+++ b/app/view/form/Messprogramm.js	Wed May 20 16:48:03 2015 +0200
@@ -25,6 +25,7 @@
         'Lada.model.Messprogramm',
         'Lada.model.MmtMessprogramm',
         'Lada.view.widget.Probenintervall',
+        'Lada.view.widget.Location',
         'Lada.view.widget.ProbenintervallSlider',
         'Lada.view.widget.base.Datetime',
         'Lada.view.widget.base.DateField'
@@ -36,6 +37,7 @@
     border: 0,
 
     recordId: null,
+    ortWindow: null,
 
     trackResetOnLoad: true,
 
@@ -98,12 +100,31 @@
                             allowBlank: false,
                             editable: true
                         }, {
-                            xtype: 'textarea', //TODO: we need a widget which is capable of handling errormsg.
+                            xtype: 'textarea', //TODO: we might need a widget which is capable of handling errormsg.
                             name: 'probeKommentar',
                             labelAlign: 'top',
                             fieldLabel: i18n.getMsg('probeKommentar'),
                             labelwidth: 135,
                             anchor: '100%'
+                        }, {
+                            layout: 'hbox',
+                            border: 0,
+                            align: 'stretch',
+                            items: [{
+                                xtype: 'location',
+                                name: 'ortId',
+                                fieldLabel: i18n.getMsg('ortId'),
+                                labelWidth: 80,
+                                allowBlank: true,
+                                forceSelection: true,
+                                editable: false
+                            }, {
+                                xtype: 'button',
+                                name: 'ortIdButton',
+                                margin: '0 0 0 5',
+                                text: i18n.getMsg('messprogrammort.button.title'),
+                                action: 'ort'
+                            }]
                         }]
                     }, {
                         border: 0,

http://lada.wald.intevation.org