From 1613d72c0a33dd27c3201fc1307aa2743d92cd7a Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Thu, 20 Oct 2016 15:38:20 +0500 Subject: Edit and show device management info --- web/app/view/DeviceDialog.js | 12 ++++++++++++ web/app/view/Devices.js | 15 +++++++++++++++ 2 files changed, 27 insertions(+) (limited to 'web/app/view') diff --git a/web/app/view/DeviceDialog.js b/web/app/view/DeviceDialog.js index 69f1ceb..ab602b8 100644 --- a/web/app/view/DeviceDialog.js +++ b/web/app/view/DeviceDialog.js @@ -45,6 +45,18 @@ Ext.define('Traccar.view.DeviceDialog', { queryMode: 'local', displayField: 'name', valueField: 'id' + }, { + xtype: 'textfield', + name: 'phone', + fieldLabel: Strings.devicePhone + }, { + xtype: 'textfield', + name: 'model', + fieldLabel: Strings.deviceModel + }, { + xtype: 'textfield', + name: 'contact', + fieldLabel: Strings.deviceContact }] } }); diff --git a/web/app/view/Devices.js b/web/app/view/Devices.js index 02f92ea..2203052 100644 --- a/web/app/view/Devices.js +++ b/web/app/view/Devices.js @@ -155,6 +155,21 @@ Ext.define('Traccar.view.Devices', { dataIndex: 'uniqueId', hidden: true, flex: 1 + }, { + text: Strings.devicePhone, + dataIndex: 'phone', + hidden: true, + flex: 1 + }, { + text: Strings.deviceModel, + dataIndex: 'model', + hidden: true, + flex: 1 + }, { + text: Strings.deviceContact, + dataIndex: 'contact', + hidden: true, + flex: 1 }, { text: Strings.deviceLastUpdate, dataIndex: 'lastUpdate', -- cgit v1.2.3