diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-05-19 16:56:08 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-19 16:56:08 +1200 |
commit | f5d4d3bf8a4d12f4739407f8f25bba3c572df649 (patch) | |
tree | 71c3807a69c69b9e8659d873ee4400cd835b699c /web/app/view/dialog/ComputedAttribute.js | |
parent | 31187bc2a3ae41ab553a6472b7592895e3641fe8 (diff) | |
parent | 8caf621e9adbeb99093076335679813a8a6e8ffe (diff) | |
download | trackermap-web-f5d4d3bf8a4d12f4739407f8f25bba3c572df649.tar.gz trackermap-web-f5d4d3bf8a4d12f4739407f8f25bba3c572df649.tar.bz2 trackermap-web-f5d4d3bf8a4d12f4739407f8f25bba3c572df649.zip |
Merge pull request #490 from Abyss777/position_attributes
Implement known position attributes
Diffstat (limited to 'web/app/view/dialog/ComputedAttribute.js')
-rw-r--r-- | web/app/view/dialog/ComputedAttribute.js | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/web/app/view/dialog/ComputedAttribute.js b/web/app/view/dialog/ComputedAttribute.js index df074919..90234b57 100644 --- a/web/app/view/dialog/ComputedAttribute.js +++ b/web/app/view/dialog/ComputedAttribute.js @@ -19,6 +19,11 @@ Ext.define('Traccar.view.dialog.ComputedAttribute', { extend: 'Traccar.view.dialog.BaseEdit', + requires: [ + 'Traccar.view.dialog.ComputedAttributeController' + ], + + controller: 'computedAttribute', title: Strings.sharedComputedAttribute, items: { @@ -28,20 +33,29 @@ Ext.define('Traccar.view.dialog.ComputedAttribute', { name: 'description', fieldLabel: Strings.sharedDescription }, { - xtype: 'textfield', + xtype: 'combobox', name: 'attribute', fieldLabel: Strings.sharedAttribute, - allowBlank: false + store: 'PositionAttributes', + displayField: 'name', + valueField: 'key', + listeners: { + change: 'onAttributeChange' + } }, { xtype: 'textareafield', name: 'expression', fieldLabel: Strings.sharedExpression, allowBlank: false }, { - xtype: 'textfield', + xtype: 'combobox', name: 'type', + reference: 'typeComboField', + store: 'AttributeValueTypes', fieldLabel: Strings.sharedType, - allowBlank: false + displayField: 'name', + valueField: 'id', + editable: false }] }, |