Commit b374e09f629b9910871919cb64cac88928aa38bb
1 parent
eb3b5e69
Exists in
master
11530: add input position unit choice
Showing
1 changed file
with
32 additions
and
0 deletions
Show diff stats
ihm/app/view/Steps/TransformationDefinition/VecDefGrid.js
... | ... | @@ -97,6 +97,38 @@ Ext.define('treps.view.Steps.TransformationDefinition.VecDefGrid' ,{ |
97 | 97 | id: 'editVecButton', |
98 | 98 | text: 'Edit', |
99 | 99 | iconCls: 'icons-16x16-edit' |
100 | + }, | |
101 | + { | |
102 | + xtype: 'combobox', | |
103 | + id: 'srcUnit', | |
104 | + editable: false, | |
105 | + queryMode: 'local', | |
106 | + emptyText: 'No unit', | |
107 | + fieldLabel: 'Unit', | |
108 | + valueField: 'kmvalue', | |
109 | + autoSelect: true, | |
110 | + labelWidth: 30, | |
111 | + width: 160, | |
112 | + padding: 5, | |
113 | + tpl: Ext.create('Ext.XTemplate', | |
114 | + '<tpl for=".">', | |
115 | + '<div class="x-boundlist-item">{fullname}</div>', | |
116 | + '</tpl>' | |
117 | + ), | |
118 | + | |
119 | + displayTpl: Ext.create('Ext.XTemplate', | |
120 | + '<tpl for=".">', | |
121 | + '<tpl if="id">', | |
122 | + '{id}', | |
123 | + '<tpl else>', | |
124 | + '', | |
125 | + '</tpl>', | |
126 | + '</tpl>' | |
127 | + ) | |
100 | 128 | } |
129 | + | |
130 | + | |
131 | + | |
132 | + | |
101 | 133 | ] |
102 | 134 | }); | ... | ... |