aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
Diffstat (limited to 'web/app')
-rw-r--r--web/app/model/Device.js12
-rw-r--r--web/app/view/DeviceDialog.js12
-rw-r--r--web/app/view/Devices.js15
3 files changed, 39 insertions, 0 deletions
diff --git a/web/app/model/Device.js b/web/app/model/Device.js
index a625fff3..ecaca0b0 100644
--- a/web/app/model/Device.js
+++ b/web/app/model/Device.js
@@ -29,6 +29,18 @@ Ext.define('Traccar.model.Device', {
name: 'uniqueId',
type: 'string'
}, {
+ name: 'phone',
+ type: 'string'
+ }, {
+ name: 'model',
+ type: 'string'
+ }, {
+ name: 'contact',
+ type: 'string'
+ }, {
+ name: 'category',
+ type: 'string'
+ }, {
name: 'status',
type: 'string'
}, {
diff --git a/web/app/view/DeviceDialog.js b/web/app/view/DeviceDialog.js
index 69f1ceb9..ab602b8d 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 02f92ea5..22030528 100644
--- a/web/app/view/Devices.js
+++ b/web/app/view/Devices.js
@@ -156,6 +156,21 @@ Ext.define('Traccar.view.Devices', {
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',
flex: 1,