diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-12 09:51:40 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-12 09:51:40 +1300 |
commit | fe7c46a0827eff88bc54e0d175b62f762bbd3688 (patch) | |
tree | d0c5467ca2e69e2eb51699a13c57f51ce8292446 /web/app/view/DeviceDialog.js | |
parent | 11c8c039cc8c5a1948281f410bdb440d5a9f1608 (diff) | |
parent | 9b36b690301faa7b84bade074aae3e863be5495d (diff) | |
download | trackermap-web-fe7c46a0827eff88bc54e0d175b62f762bbd3688.tar.gz trackermap-web-fe7c46a0827eff88bc54e0d175b62f762bbd3688.tar.bz2 trackermap-web-fe7c46a0827eff88bc54e0d175b62f762bbd3688.zip |
Merge pull request #313 from Abyss777/device_images
Draft of device images
Diffstat (limited to 'web/app/view/DeviceDialog.js')
-rw-r--r-- | web/app/view/DeviceDialog.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/web/app/view/DeviceDialog.js b/web/app/view/DeviceDialog.js index 68740b24..d3f964ed 100644 --- a/web/app/view/DeviceDialog.js +++ b/web/app/view/DeviceDialog.js @@ -57,6 +57,22 @@ Ext.define('Traccar.view.DeviceDialog', { xtype: 'textfield', name: 'contact', fieldLabel: Strings.deviceContact + }, { + xtype: 'combobox', + name: 'category', + fieldLabel: Strings.deviceCategory, + store: 'DeviceImages', + queryMode: 'local', + displayField: 'name', + valueField: 'key', + listConfig: { + getInnerTpl: function () { + return '<table><tr valign="middle" ><td><div align="center" style="width:40px;height:40px;" >' + + '{[new XMLSerializer().serializeToString(Traccar.DeviceImages.getImageSvg(' + + 'Traccar.Style.mapColorOnline, false, 0, values.key))]}</div></td>' + + '<td>- {name}</td></tr></table>'; + } + } }] } }); |