comparison app/view/proben/CreateForm.js @ 532:91a1a88ee353

some resizing and layout.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 17 Dec 2014 12:08:29 +0100
parents 2b5aa0e6e641
children
comparison
equal deleted inserted replaced
531:7fb335bf6799 532:91a1a88ee353
27 initComponent: function() { 27 initComponent: function() {
28 this.items = [{ 28 this.items = [{
29 xtype: 'fieldset', 29 xtype: 'fieldset',
30 title: 'Probenangaben', 30 title: 'Probenangaben',
31 defaults: { 31 defaults: {
32 labelWidth: 150 32 labelWidth: 160
33 }, 33 },
34 items: [{ 34 items: [{
35 layout: 'hbox', 35 layout: 'hbox',
36 border: 0, 36 border: 0,
37 items: [{ 37 items: [{
39 width: '43%', 39 width: '43%',
40 minWidth: 290, 40 minWidth: 290,
41 items: [{ 41 items: [{
42 xtype: 'mst', 42 xtype: 'mst',
43 name: 'mstId', 43 name: 'mstId',
44 labelWidth: 125,
44 fieldLabel: 'Messstelle', 45 fieldLabel: 'Messstelle',
45 allowBlank: false 46 allowBlank: false
46 }, { 47 }, {
47 xtype: 'textfield', 48 xtype: 'textfield',
48 name: 'hauptprobenNr', 49 name: 'hauptprobenNr',
50 labelWidth: 125,
49 maxLength: 20, 51 maxLength: 20,
50 fieldLabel: 'Hauptprobennr.' 52 fieldLabel: 'Hauptprobennr.'
51 }] 53 }]
52 }, { 54 }, {
53 border: 0, 55 border: 0,
97 }] 99 }]
98 }, { 100 }, {
99 // Medium 101 // Medium
100 xtype: 'fieldset', 102 xtype: 'fieldset',
101 title: 'Medium', 103 title: 'Medium',
102 defaults: {
103 labelWidth: 150
104 },
105 items: [{ 104 items: [{
106 border: 0, 105 border: 0,
107 layout: { 106 layout: {
108 type: 'vbox', 107 type: 'vbox',
109 align: 'stretch' 108 align: 'stretch'
110 }, 109 },
111 items: [{ 110 items: [{
112 xtype: 'uwb', 111 xtype: 'uwb',
113 name: 'umwId', 112 name: 'umwId',
114 fieldLabel: 'Umweltbereich', 113 fieldLabel: 'Umweltbereich',
114 labelWidth: 125,
115 allowBlank: false 115 allowBlank: false
116 }, { 116 }, {
117 xtype: 'textfield', 117 xtype: 'textfield',
118 maxLength: 100, 118 maxLength: 100,
119 name: 'media', 119 name: 'media',
120 labelWidth: 125,
120 fieldLabel: 'Medienbezeichnung' 121 fieldLabel: 'Medienbezeichnung'
121 }, { 122 }, {
122 xtype: 'textfield', 123 xtype: 'textfield',
123 maxLength: 100, 124 maxLength: 100,
124 name: 'mediaDesk', 125 name: 'mediaDesk',
126 labelWidth: 125,
125 fieldLabel: 'Deskriptoren' 127 fieldLabel: 'Deskriptoren'
126 }, { 128 }, {
127 xtype: 'fieldset', 129 xtype: 'fieldset',
128 title: 'Details Deskriptoren', 130 title: 'Details Deskriptoren',
129 collapsible: true, 131 collapsible: true,
139 }, { 141 }, {
140 // Zeit 142 // Zeit
141 xtype: 'fieldset', 143 xtype: 'fieldset',
142 title: 'Zeit', 144 title: 'Zeit',
143 defaultType: 'datetime', 145 defaultType: 'datetime',
144 defaults: {
145 labelWidth: 150
146 },
147 layout: { 146 layout: {
148 type: 'table', 147 type: 'table',
149 columns: 2 148 columns: 2
150 }, 149 },
151 items: [{ 150 items: [{
152 fieldLabel: 'Probennahme Beginn', 151 fieldLabel: 'Probennahme Beginn',
153 name: 'probeentnahmeBeginn' 152 name: 'probeentnahmeBeginn',
153 margin: '0, 10, 5, 0',
154 labelWidth: 125
154 }, { 155 }, {
155 fieldLabel: 'Sollzeit Von', 156 fieldLabel: 'Sollzeit Von',
156 name: 'solldatumBeginn' 157 name: 'solldatumBeginn',
158 margin: '0, 10, 5, 0',
159 labelWidth: 100
157 }, { 160 }, {
158 fieldLabel: 'Probennahme Ende', 161 fieldLabel: 'Probennahme Ende',
159 name: 'probeentnahmeEnde' 162 name: 'probeentnahmeEnde',
163 margin: '0, 10, 5, 0',
164 labelWidth: 125
160 }, { 165 }, {
161 fieldLabel: 'Sollzeit Bis', 166 fieldLabel: 'Sollzeit Bis',
162 name: 'solldatumEnde' 167 name: 'solldatumEnde',
168 margin: '0, 10, 5, 0',
169 labelWidth: 100
163 }] 170 }]
164 }]; 171 }];
165 this.callParent(arguments); 172 this.callParent(arguments);
166 }, 173 },
167 174

http://lada.wald.intevation.org