comparison app/view/grid/Probenehmer.js @ 1098:9bfbcad128a3

Set and enforce max text length for stammdaten fields.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 10 May 2016 16:01:25 +0200
parents 677fc5e62055
children 421db8840f49
comparison
equal deleted inserted replaced
1094:677fc5e62055 1098:9bfbcad128a3
104 } 104 }
105 }, { 105 }, {
106 header: i18n.getMsg('bearbeiter'), 106 header: i18n.getMsg('bearbeiter'),
107 dataIndex: 'bearbeiter', 107 dataIndex: 'bearbeiter',
108 editor: { 108 editor: {
109 xtype: 'textfield' 109 xtype: 'textfield',
110 maxLength: 25,
111 enforceMaxLength: true
110 } 112 }
111 }, { 113 }, {
112 header: i18n.getMsg('prnId'), 114 header: i18n.getMsg('prnId'),
113 dataIndex: 'prnId', 115 dataIndex: 'prnId',
114 editor: { 116 editor: {
120 }, { 122 }, {
121 header: i18n.getMsg('bemerkung'), 123 header: i18n.getMsg('bemerkung'),
122 dataIndex: 'bemerkung', 124 dataIndex: 'bemerkung',
123 editor: { 125 editor: {
124 allowBlank: false, 126 allowBlank: false,
125 xtype: 'textfield' 127 xtype: 'textfield',
128 maxLength: 60,
129 enforceMaxLength: true
126 } 130 }
127 }, { 131 }, {
128 header: i18n.getMsg('kurzBezeichnung'), 132 header: i18n.getMsg('kurzBezeichnung'),
129 dataIndex: 'kurzBezeichnung', 133 dataIndex: 'kurzBezeichnung',
130 editor: { 134 editor: {
131 allowBlank: false, 135 allowBlank: false,
132 xtype: 'textfield' 136 xtype: 'textfield',
137 maxLength: 10,
138 enforceMaxLength: true
133 } 139 }
134 }, { 140 }, {
135 header: i18n.getMsg('ort'), 141 header: i18n.getMsg('ort'),
136 dataIndex: 'ort', 142 dataIndex: 'ort',
137 editor: { 143 editor: {
138 xtype: 'textfield' 144 xtype: 'textfield',
145 maxLength: 20,
146 enforceMaxLength: true
139 } 147 }
140 }, { 148 }, {
141 header: i18n.getMsg('plz'), 149 header: i18n.getMsg('plz'),
142 dataIndex: 'plz', 150 dataIndex: 'plz',
143 editor: { 151 editor: {
145 } 153 }
146 }, { 154 }, {
147 header: i18n.getMsg('strasse'), 155 header: i18n.getMsg('strasse'),
148 dataIndex: 'strasse', 156 dataIndex: 'strasse',
149 editor: { 157 editor: {
150 xtype: 'textfield' 158 xtype: 'textfield',
159 maxLength: 30,
160 enforceMaxLength: true
151 } 161 }
152 }, { 162 }, {
153 header: i18n.getMsg('telefon'), 163 header: i18n.getMsg('telefon'),
154 dataIndex: 'telefon', 164 dataIndex: 'telefon',
155 editor: { 165 editor: {
156 xtype: 'textfield' 166 xtype: 'textfield',
167 maxLength: 20,
168 enforceMaxLength: true
157 } 169 }
158 }, { 170 }, {
159 header: i18n.getMsg('tp'), 171 header: i18n.getMsg('tp'),
160 dataIndex: 'tp', 172 dataIndex: 'tp',
161 editor: { 173 editor: {
162 xtype: 'textfield' 174 xtype: 'textfield',
175 maxLength: 3,
176 enforceMaxLength: true
163 } 177 }
164 }, { 178 }, {
165 header: i18n.getMsg('typ'), 179 header: i18n.getMsg('typ'),
166 dataIndex: 'typ', 180 dataIndex: 'typ',
167 editor: { 181 editor: {
168 xtype: 'textfield' 182 xtype: 'textfield',
183 maxLength: 1,
184 enforceMaxLength: true
169 } 185 }
170 }, { 186 }, {
171 header: i18n.getMsg('letzteAenderung'), 187 header: i18n.getMsg('letzteAenderung'),
172 xtype: 'datecolumn', 188 xtype: 'datecolumn',
173 format: 'd.m.Y H:i', 189 format: 'd.m.Y H:i',

http://lada.wald.intevation.org