[Lada-commits] [PATCH 2 of 2] Set allowBlank to false for mandatory fields to be filled by the user

Wald Commits scm-commit at wald.intevation.org
Thu Aug 4 17:17:25 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1470323757 -7200
# Node ID 1ae5e4f0f2c8762150c3df7c2de68f9be9ad0f80
# Parent  08bd9f1c791b97f3ff9dbf176c66f5178e76c07a
Set allowBlank to false for mandatory fields to be filled by the user.

diff -r 08bd9f1c791b -r 1ae5e4f0f2c8 app/view/form/Messprogramm.js
--- a/app/view/form/Messprogramm.js	Thu Aug 04 16:59:37 2016 +0200
+++ b/app/view/form/Messprogramm.js	Thu Aug 04 17:15:57 2016 +0200
@@ -139,6 +139,7 @@
                             }, {
                                 xtype: 'datenbasis',
                                 editable: false,
+                                allowBlank: false,
                                 name: 'datenbasisId',
                                 fieldLabel: i18n.getMsg('datenbasisId'),
                                 margin : '0, 5, 5, 5',
@@ -207,6 +208,7 @@
                         margin: '0, 0, 0, 0',
                         items: [{
                             xtype: 'probenintervall',
+                            allowBlank: false,
                             fieldLabel: i18n.getMsg('probenintervall'),
                             margin: '0, 10, 5, 5',
                             labelWidth: 50,
@@ -215,6 +217,7 @@
                         }, {
                             xtype: 'numfield',
                             allowDecimals: false,
+                            allowBlank: false,
                             fieldLabel: i18n.getMsg('teilintervallVon'),
                             margin: '0, 10, 5, 10',
                             labelWidth: 90,
@@ -224,6 +227,7 @@
                         }, {
                             xtype: 'numfield',
                             allowDecimals: false,
+                            allowBlank: false,
                             fieldLabel: i18n.getMsg('teilintervallBis'),
                             margin: '0, 15, 5, 5',
                             labelWidth: 18,
@@ -259,6 +263,7 @@
                         border: 0,
                         items: [{
                             xtype: 'datetime',
+                            allowBlank: false,
                             fieldLabel: i18n.getMsg('gueltigVon'),
                             margin: '0, 30, 5, 5',
                             labelWidth: 90,
@@ -267,6 +272,7 @@
                             period: 'start'
                         }, {
                             xtype: 'datetime',
+                            allowBlank: false,
                             fieldLabel: i18n.getMsg('gueltigBis'),
                             margin: '0, 5, 5, 5',
                             labelWidth: 40,
@@ -292,7 +298,6 @@
                             name: 'umwId',
                             fieldLabel: i18n.getMsg('umwId'),
                             labelWidth: 125,
-                            allowBlank: false,
                             editable: true,
                             listeners: {
                                 dirtychange: {
@@ -365,7 +370,7 @@
                         name: 'ortId',
                         fieldLabel: i18n.getMsg('ortId'),
                         labelWidth: 80,
-                        allowBlank: true,
+                        allowBlank: false,
                         forceSelection: true,
                         editable: false,
                         columnWidth: '0.75'


More information about the Lada-commits mailing list