comparison app/view/form/Ortszuordnung.js @ 1334:2c5d89886885

Fixed ortszuordnung window layout.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 03 Feb 2017 16:17:46 +0100
parents f1e348109ebb
children cba4e0b0e336
comparison
equal deleted inserted replaced
1333:af169bcb67df 1334:2c5d89886885
47 this.items = [{ 47 this.items = [{
48 xtype: 'fieldset', 48 xtype: 'fieldset',
49 title: i18n.getMsg('ortszuordnung.form.fset.title'), 49 title: i18n.getMsg('ortszuordnung.form.fset.title'),
50 layout: 'fit', 50 layout: 'fit',
51 items: [{ 51 items: [{
52 layout: 'hbox', 52 overflowY: 'auto',
53 border: 0, 53 border: 0,
54 margin: '0, 0, 10, 0', 54 margin: '0, 0, 10, 0',
55 dockedItems: [{ 55 dockedItems: [{
56 xtype: 'toolbar', 56 xtype: 'toolbar',
57 dock: 'bottom', 57 dock: 'bottom',
80 icon: 'resources/img/dialog-cancel.png', 80 icon: 'resources/img/dialog-cancel.png',
81 action: 'revert', 81 action: 'revert',
82 }] 82 }]
83 }], 83 }],
84 items: [{ 84 items: [{
85 layout: 'vbox', 85 layout: 'hbox',
86 autoscroll: true,
87 border: 0, 86 border: 0,
87 margin: '0, 0, 10, 0',
88 items: [{ 88 items: [{
89 layout: 'vbox', 89 layout: 'vbox',
90 border: 0, 90 border: 0,
91 margin: '0, 20, 0, 0',
92 items: [{ 91 items: [{
93 xtype: 'tfield', 92 layout: 'vbox',
94 labelWidth: 125, 93 border: 0,
95 maxLength: 100, 94 margin: '0, 20, 0, 0',
96 name: 'ortszusatztext', 95 items: [{
97 fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszusatztext') 96 xtype: 'tfield',
98 }, { 97 labelWidth: 125,
99 xtype: 'cbox', 98 maxLength: 100,
100 labelWidth: 125, 99 name: 'ortszusatztext',
101 maxLength: 1, 100 fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszusatztext')
102 allowBlank: false, 101 }, {
103 editable: true, 102 xtype: 'cbox',
104 name: this.typName, 103 labelWidth: 125,
105 disableKeyFilter: true, 104 maxLength: 1,
106 fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszuordnungtyp'), 105 allowBlank: false,
107 store: Ext.create('Ext.data.Store', { 106 editable: true,
108 fields: ['value', 'label'], 107 name: this.typName,
109 //TODO: Meaning of the letters should be added 108 disableKeyFilter: true,
110 data : [ 109 fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszuordnungtyp'),
111 {'value':'U', 'label':'U'}, 110 store: Ext.create('Ext.data.Store', {
112 {'value':'E', 'label':'E'}, 111 fields: ['value', 'label'],
113 {'value':'Z', 'label':'Z'}, 112 //TODO: Meaning of the letters should be added
114 {'value':'A', 'label':'A'} 113 data : [
115 ] 114 {'value':'U', 'label':'U'},
116 }), 115 {'value':'E', 'label':'E'},
117 displayField: 'label', 116 {'value':'Z', 'label':'Z'},
118 valueField: 'value', 117 {'value':'A', 'label':'A'}
119 emptyText: 'Bitte geben Sie einen Ortszuordnungstyp ein', 118 ]
120 queryMode: 'local' 119 }),
121 }, { 120 displayField: 'label',
122 // this field is hidden because the user doesn't 121 valueField: 'value',
123 // need to know the internal ortID 122 emptyText: 'Bitte geben Sie einen Ortszuordnungstyp ein',
124 xtype: 'textfield', 123 queryMode: 'local'
125 allowBlank: false, 124 }, {
126 regex: /^[0-9]{1,45}$/, 125 // this field is hidden because the user doesn't
127 submitValue: true, 126 // need to know the internal ortID
128 hidden: true, 127 xtype: 'textfield',
129 name: this.ortIdName, 128 allowBlank: false,
130 listeners: { 129 regex: /^[0-9]{1,45}$/,
131 change: me.changed 130 submitValue: true,
132 } 131 hidden: true,
133 }] 132 name: this.ortIdName,
134 }, 133 listeners: {
135 Ext.create('Lada.view.form.OrtInfo') 134 change: me.changed
136 ] 135 }
136 }]
137 },
138 Ext.create('Lada.view.form.OrtInfo',{
139 flex: 1
140 })
141 ]
142 }]
137 }] 143 }]
138 }] 144 }]
139 }]; 145 }];
140 this.callParent(arguments); 146 this.callParent(arguments);
141 }, 147 },

http://lada.wald.intevation.org