Mercurial > lada > lada-client
comparison app/view/form/Ortszuordnung.js @ 1290:d17501b967f2
combobox ortszuordnungstyp
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Wed, 01 Feb 2017 15:31:41 +0100 |
parents | bfdc00c24baf |
children | e9f812528324 |
comparison
equal
deleted
inserted
replaced
1289:bfdc00c24baf | 1290:d17501b967f2 |
---|---|
95 labelWidth: 125, | 95 labelWidth: 125, |
96 maxLength: 100, | 96 maxLength: 100, |
97 name: 'ortszusatztext', | 97 name: 'ortszusatztext', |
98 fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszusatztext') | 98 fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszusatztext') |
99 }, { | 99 }, { |
100 xtype: 'textfield', | 100 xtype: 'cbox', |
101 labelWidth: 125, | 101 labelWidth: 125, |
102 maxLength: 1, | 102 maxLength: 1, |
103 allowBlank: false, | 103 allowBlank: false, |
104 regex: /[UEZA]{1}/, | 104 editable: true, |
105 activeError: 'U, E, Z oder A eingeben', | |
106 name: this.typName, | 105 name: this.typName, |
106 disableKeyFilter: true, | |
107 fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszuordnungtyp'), | 107 fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszuordnungtyp'), |
108 listeners: { | 108 store: Ext.create('Ext.data.Store', { |
109 change: me.changed | 109 fields: ['value', 'label'], |
110 } | 110 //TODO: Meaning of the letters should be added |
111 data : [ | |
112 {'value':'U', 'label':'U'}, | |
113 {'value':'E', 'label':'E'}, | |
114 {'value':'Z', 'label':'Z'}, | |
115 {'value':'A', 'label':'A'} | |
116 ] | |
117 }), | |
118 displayField: 'label', | |
119 valueField: 'value', | |
120 emptyText: 'Bitte geben Sie einen Ortszuordnungstyp ein', | |
121 queryMode: 'local' | |
111 }, { | 122 }, { |
112 // this field is hidden because the user doesn't | 123 // this field is hidden because the user doesn't |
113 // need to know the internal ortID | 124 // need to know the internal ortID |
114 xtype: 'textfield', | 125 xtype: 'textfield', |
115 // fieldLabel: i18n.getMsg('orte.ortid'), | 126 // fieldLabel: i18n.getMsg('orte.ortid'), |