aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-10-20 15:38:20 +0500
committerAbyss777 <abyss@fox5.ru>2016-10-20 15:38:20 +0500
commit1613d72c0a33dd27c3201fc1307aa2743d92cd7a (patch)
tree14a4143b70d22ddac65c917dfae0a8394d52f7ab /web
parent524c64e5bac499a27b2ae9551e579f22b5dadb53 (diff)
downloadetbsa-traccar-web-1613d72c0a33dd27c3201fc1307aa2743d92cd7a.tar.gz
etbsa-traccar-web-1613d72c0a33dd27c3201fc1307aa2743d92cd7a.tar.bz2
etbsa-traccar-web-1613d72c0a33dd27c3201fc1307aa2743d92cd7a.zip
Edit and show device management info
Diffstat (limited to 'web')
-rw-r--r--web/app/model/Device.js12
-rw-r--r--web/app/view/DeviceDialog.js12
-rw-r--r--web/app/view/Devices.js15
-rw-r--r--web/l10n/en.json3
4 files changed, 42 insertions, 0 deletions
diff --git a/web/app/model/Device.js b/web/app/model/Device.js
index a625fff..0e304b6 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: 'type',
+ type: 'string'
+ }, {
name: 'status',
type: 'string'
}, {
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
@@ -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,
diff --git a/web/l10n/en.json b/web/l10n/en.json
index 46fb858..1b8c966 100644
--- a/web/l10n/en.json
+++ b/web/l10n/en.json
@@ -54,6 +54,9 @@
"deviceDialog": "Device",
"deviceTitle": "Devices",
"deviceIdentifier": "Identifier",
+ "devicePhone": "Phone",
+ "deviceModel": "Model",
+ "deviceContact": "Contact",
"deviceLastUpdate": "Last Update",
"deviceCommand": "Command",
"deviceFollow": "Follow",