Mercurial > lada > lada-client
comparison app/view/form/OrtInfo.js @ 1288:08085b7d1d0b
Ortszuordnung: Search, new orte, display and validity check
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Fri, 27 Jan 2017 13:25:14 +0100 |
parents | |
children | bfdc00c24baf |
comparison
equal
deleted
inserted
replaced
1287:e317ba349204 | 1288:08085b7d1d0b |
---|---|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | |
6 * the documentation coming with IMIS-Labordaten-Application for details. | |
7 */ | |
8 | |
9 /** | |
10 * Form used to display the data of an Ort record. | |
11 */ | |
12 Ext.define('Lada.view.form.OrtInfo', { | |
13 extend: 'Ext.form.Panel', | |
14 alias: 'widget.ortinfo', | |
15 model: 'Lada.model.Ort', | |
16 border: 0, | |
17 flex: 1, | |
18 margin: '0, 10, 0, 0', | |
19 record: null, | |
20 initComponent: function() { | |
21 var i18n = Lada.getApplication().bundle; | |
22 this.items = [{ | |
23 layout: 'vbox', | |
24 flex: 1, | |
25 border: 0, | |
26 items: [{ | |
27 xtype: 'displayfield', | |
28 labelWidth: 125, | |
29 fieldLabel: i18n.getMsg('orte.ortId'), | |
30 name: 'ortId' | |
31 }, | |
32 { | |
33 xtype: 'displayfield', | |
34 labelWidth: 125, | |
35 fieldLabel: i18n.getMsg('orte.kurztext'), | |
36 name: 'kurztext' | |
37 }, { | |
38 xtype: 'displayfield', | |
39 labelWidth: 125, | |
40 fieldLabel: i18n.getMsg('orte.langtext'), | |
41 name: 'langtext' | |
42 }, { | |
43 xtype: 'displayfield', | |
44 labelWidth: 125, | |
45 fieldLabel: i18n.getMsg('staat'), | |
46 name: 'staatISO' | |
47 }, { | |
48 xtype: 'displayfield', | |
49 labelWidth: 125, | |
50 fieldLabel: i18n.getMsg('orte.gemeinde'), | |
51 name: 'gemeinde' | |
52 }, { | |
53 xtype: 'displayfield', | |
54 labelWidth: 125, | |
55 fieldLabel: i18n.getMsg('orte.gemeindename'), | |
56 name: 'gemeinde' | |
57 }, { | |
58 xtype: 'displayfield', | |
59 labelWidth: 125, | |
60 fieldLabel: i18n.getMsg('orte.kda'), | |
61 name: 'kdaId' | |
62 }, { | |
63 xtype: 'displayfield', | |
64 labelWidth: 125, | |
65 fieldLabel: i18n.getMsg('orte.koordx'), | |
66 name: 'koordXExtern' | |
67 }, { | |
68 xtype: 'displayfield', | |
69 labelWidth: 125, | |
70 fieldLabel: i18n.getMsg('orte.koordy'), | |
71 name: 'koordYExtern' | |
72 }] | |
73 }]; | |
74 this.callParent(arguments); | |
75 } | |
76 }); |