comparison app/view/grid/Orte.js @ 1254:6321530e640e

Make it a bit easier to create a valid new Ort. Values for maxLength are taken from the database schema of the server.
author Tom Gottfried <tom@intevation.de>
date Fri, 18 Nov 2016 13:27:00 +0100
parents e5e4eb249d9c
children 16a80ca16732
comparison
equal deleted inserted replaced
1253:2caaaa690e17 1254:6321530e640e
78 dataIndex: 'netzbetreiberId' 78 dataIndex: 'netzbetreiberId'
79 }, { 79 }, {
80 header: i18n.getMsg('orte.ortId'), 80 header: i18n.getMsg('orte.ortId'),
81 editor: { 81 editor: {
82 xtype: 'textfield', 82 xtype: 'textfield',
83 maxLength: 10,
83 allowBlank: false 84 allowBlank: false
84 }, 85 },
85 dataIndex: 'ortId' 86 dataIndex: 'ortId'
86 }, { 87 }, {
87 header: i18n.getMsg('orte.nutsCode'), 88 header: i18n.getMsg('orte.nutsCode'),
88 editor: { 89 editor: {
89 xtype: 'textfield' 90 xtype: 'textfield',
91 maxLength: 10
90 }, 92 },
91 dataIndex: 'nutsCode' 93 dataIndex: 'nutsCode'
92 }, { 94 }, {
93 header: i18n.getMsg('orte.anlageId'), 95 header: i18n.getMsg('orte.anlageId'),
94 editor: { 96 editor: {
147 header: i18n.getMsg('orte.ortTyp'), 149 header: i18n.getMsg('orte.ortTyp'),
148 dataIndex: 'ortTyp' 150 dataIndex: 'ortTyp'
149 }, { 151 }, {
150 header: i18n.getMsg('orte.mpArt'), 152 header: i18n.getMsg('orte.mpArt'),
151 editor: { 153 editor: {
154 xtype: 'textfield',
155 maxLength: 10
156 },
157 dataIndex: 'mpArt'
158 }, {
159 header: i18n.getMsg('orte.zone'),
160 editor: {
161 xtype: 'textfield',
162 maxLength: 1
163 },
164 dataIndex: 'zone'
165 }, {
166 header: i18n.getMsg('orte.sektor'),
167 editor: {
168 xtype: 'textfield',
169 maxLength: 2
170 },
171 dataIndex: 'sektor'
172 }, {
173 header: i18n.getMsg('orte.zustaendigkeit'),
174 editor: {
175 xtype: 'textfield',
176 maxLength: 10
177 },
178 dataIndex: 'zustaendigkeit'
179 }, {
180 header: i18n.getMsg('orte.berichtstext'),
181 editor: {
182 xtype: 'textfield',
183 maxLength: 70
184 },
185 dataIndex: 'berichtstext'
186 }, {
187 header: i18n.getMsg('orte.kurztext'),
188 editor: {
189 xtype: 'textfield',
190 maxLength: 15,
191 allowBlank: false
192 },
193 dataIndex: 'kurztext'
194 }, {
195 header: i18n.getMsg('orte.langtext'),
196 editor: {
197 xtype: 'textfield',
198 maxLength: 100,
199 allowBlank: false
200 },
201 dataIndex: 'langtext'
202 }, {
203 header: i18n.getMsg('orte.unscharf'),
204 editor: {
152 xtype: 'textfield' 205 xtype: 'textfield'
153 }, 206 },
154 dataIndex: 'mpArt'
155 }, {
156 header: i18n.getMsg('orte.zone'),
157 editor: {
158 xtype: 'textfield'
159 },
160 dataIndex: 'zone'
161 }, {
162 header: i18n.getMsg('orte.sektor'),
163 editor: {
164 xtype: 'textfield'
165 },
166 dataIndex: 'sektor'
167 }, {
168 header: i18n.getMsg('orte.zustaendigkeit'),
169 editor: {
170 xtype: 'textfield'
171 },
172 dataIndex: 'zustaendigkeit'
173 }, {
174 header: i18n.getMsg('orte.berichtstext'),
175 editor: {
176 xtype: 'textfield'
177 },
178 dataIndex: 'berichtstext'
179 }, {
180 header: i18n.getMsg('orte.kurztext'),
181 editor: {
182 xtype: 'textfield',
183 allowBlank: false
184 },
185 dataIndex: 'kurztext'
186 }, {
187 header: i18n.getMsg('orte.langtext'),
188 editor: {
189 xtype: 'textfield',
190 allowBlank: false
191 },
192 dataIndex: 'langtext'
193 }, {
194 header: i18n.getMsg('orte.unscharf'),
195 editor: {
196 xtype: 'textfield'
197 },
198 dataIndex: 'unscharf' 207 dataIndex: 'unscharf'
199 }, { 208 }, {
200 header: i18n.getMsg('orte.hoeheLand'), 209 header: i18n.getMsg('orte.hoeheLand'),
201 editor: { 210 editor: {
202 xtype: 'numberfield' 211 xtype: 'numberfield'
204 dataIndex: 'hoeheLand' 213 dataIndex: 'hoeheLand'
205 }, { 214 }, {
206 header: i18n.getMsg('orte.koordXExtern'), 215 header: i18n.getMsg('orte.koordXExtern'),
207 editor: { 216 editor: {
208 xtype: 'textfield', 217 xtype: 'textfield',
218 maxLength: 22,
209 allowBlank: false 219 allowBlank: false
210 }, 220 },
211 dataIndex: 'koordXExtern' 221 dataIndex: 'koordXExtern'
212 }, { 222 }, {
213 header: i18n.getMsg('orte.koordYExtern'), 223 header: i18n.getMsg('orte.koordYExtern'),
214 editor: { 224 editor: {
215 xtype: 'textfield', 225 xtype: 'textfield',
226 maxLength: 22,
216 allowBlank: false 227 allowBlank: false
217 }, 228 },
218 dataIndex: 'koordYExtern' 229 dataIndex: 'koordYExtern'
219 }, { 230 }, {
220 header: i18n.getMsg('orte.longitude'), 231 header: i18n.getMsg('orte.longitude'),

http://lada.wald.intevation.org