comparison app/view/form/Ortszuordnung.js @ 1274:a792eecf1614

Updated Layout and Map for 'ortsbezug'-window. WIP!
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 10 Jan 2017 10:03:57 +0100
parents 3e9a37ca9ae9
children 08085b7d1d0b
comparison
equal deleted inserted replaced
1265:a4c1a9862a88 1274:a792eecf1614
19 'Lada.view.widget.Verwaltungseinheit', 19 'Lada.view.widget.Verwaltungseinheit',
20 'Lada.view.widget.Staat' 20 'Lada.view.widget.Staat'
21 ], 21 ],
22 22
23 layout: 'fit', 23 layout: 'fit',
24 margin: 5, 24 margin: '5, 5, 0, 5',
25 border: 0, 25 border: 0,
26 26
27 record: null, 27 record: null,
28 28
29 trackResetOnLoad: true, 29 trackResetOnLoad: true,
68 disabled: true 68 disabled: true
69 }] 69 }]
70 }], 70 }],
71 items: [{ 71 items: [{
72 layout: 'vbox', 72 layout: 'vbox',
73 border: 0, 73 autoscroll: true,
74 margin: '0, 10, 0, 0',
75 items: [{
76 xtype: 'tfield',
77 labelWidth: 125,
78 maxLength: 100,
79 name: 'ortszusatztext',
80 fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszusatztext')
81 }, {
82 xtype: 'textfield',
83 labelWidth: 125,
84 maxLength: 1,
85 allowBlank: false,
86 regex: /[UEZA]/,
87 activeError: 'U, E, Z oder A eingeben',
88 name: 'ortszuordnungTyp',
89 fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszuordnungtyp')
90 }, {
91 xtype: 'textfield',
92 submitValue: true,
93 readOnly: true,
94 hidden: true,
95 name: 'ortId'
96 }]
97 }, {
98 layout: 'vbox',
99 flex: 1,
100 margin: '0, 10, 0, 0',
101 border: 0, 74 border: 0,
102 items: [{ 75 items: [{
103 xtype: 'displayfield', 76 layout: 'vbox',
104 labelWidth: 125, 77 border: 0,
105 fieldLabel: i18n.getMsg('orte.gemeinde'), 78 margin: '0, 10, 0, 0',
106 name: 'gemeinde' 79 items: [{
80 xtype: 'tfield',
81 labelWidth: 125,
82 maxLength: 100,
83 name: 'ortszusatztext',
84 fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszusatztext')
85 }, {
86 xtype: 'textfield',
87 labelWidth: 125,
88 maxLength: 1,
89 allowBlank: false,
90 regex: /[UEZA]/,
91 activeError: 'U, E, Z oder A eingeben',
92 name: 'ortszuordnungTyp',
93 fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszuordnungtyp')
94 }, {
95 xtype: 'displayfield',
96 labelWidth: 125,
97 fieldLabel: i18n.getMsg('orte.ortid'),
98 submitValue: true,
99 name: 'ortId'
100 }]
107 }, { 101 }, {
108 xtype: 'displayfield', 102 layout: 'vbox',
109 labelWidth: 125, 103 flex: 1,
110 fieldLabel: i18n.getMsg('staat'), 104 margin: '0, 10, 0, 0',
111 name: 'staat' 105 border: 0,
112 }] 106 items: [{
113 }, { 107 xtype: 'displayfield',
114 layout: 'vbox', 108 labelWidth: 125,
115 flex: 1, 109 fieldLabel: i18n.getMsg('orte.kurztext'),
116 margin: '0, 10, 0, 0', 110 name: 'kurztext'
117 border: 0, 111 }, {
118 items: [{ 112 xtype: 'displayfield',
119 xtype: 'displayfield', 113 labelWidth: 125,
120 labelWidth: 125, 114 fieldLabel: i18n.getMsg('orte.langtext'),
121 fieldLabel: i18n.getMsg('orte.lon'), 115 name: 'langtext'
122 name: 'lon' 116 }, {
123 }, { 117 xtype: 'displayfield',
124 xtype: 'displayfield', 118 labelWidth: 125,
125 labelWidth: 125, 119 fieldLabel: i18n.getMsg('staat'),
126 fieldLabel: i18n.getMsg('orte.lat'), 120 name: 'staatISO'
127 name: 'lat' 121 }, {
122 xtype: 'displayfield',
123 labelWidth: 125,
124 fieldLabel: i18n.getMsg('orte.gemeinde'),
125 name: 'gemeinde'
126 }, {
127 xtype: 'displayfield',
128 labelWidth: 125,
129 fieldLabel: i18n.getMsg('orte.gemeindename'),
130 name: 'gemeinde'
131 }, {
132 xtype: 'displayfield',
133 labelWidth: 125,
134 fieldLabel: i18n.getMsg('orte.kda'),
135 name: 'kdaId'
136 }, {
137 xtype: 'displayfield',
138 labelWidth: 125,
139 fieldLabel: i18n.getMsg('orte.koordx'),
140 name: 'koordXExtern'
141 }, {
142 xtype: 'displayfield',
143 labelWidth: 125,
144 fieldLabel: i18n.getMsg('orte.koordy'),
145 name: 'koordYExtern'
146 }]
128 }] 147 }]
129 }] 148 }]
130 }] 149 //}, {
131 }]; 150 // layout: 'vbox',
151 // flex: 1,
152 // margin: '0, 10, 0, 0',
153 // border: 0,
154 // items: [{
155 // xtype: ''
156 // }]
157 }]
158 }];
132 this.callParent(arguments); 159 this.callParent(arguments);
133 }, 160 },
134 161
135 setRecord: function(record) { 162 setRecord: function(record) {
136 this.getForm().loadRecord(record); 163 this.getForm().loadRecord(record);

http://lada.wald.intevation.org