aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/DeviceDialog.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-03-10 17:37:42 +0500
committerAbyss777 <abyss@fox5.ru>2017-03-10 17:37:42 +0500
commit7bdbea99ae60ee6dab11a892b2336a4dfa45da5e (patch)
tree7d09b2f9fcb704eda05586b6c60b05252d2ccba4 /web/app/view/DeviceDialog.js
parentfffbc1700b4ca1c35109eddc40edbc994d01942a (diff)
downloadetbsa-traccar-web-7bdbea99ae60ee6dab11a892b2336a4dfa45da5e.tar.gz
etbsa-traccar-web-7bdbea99ae60ee6dab11a892b2336a4dfa45da5e.tar.bz2
etbsa-traccar-web-7bdbea99ae60ee6dab11a892b2336a4dfa45da5e.zip
Group device fields
Diffstat (limited to 'web/app/view/DeviceDialog.js')
-rw-r--r--web/app/view/DeviceDialog.js98
1 files changed, 54 insertions, 44 deletions
diff --git a/web/app/view/DeviceDialog.js b/web/app/view/DeviceDialog.js
index 705ab92..2b29e30 100644
--- a/web/app/view/DeviceDialog.js
+++ b/web/app/view/DeviceDialog.js
@@ -23,52 +23,62 @@ Ext.define('Traccar.view.DeviceDialog', {
items: {
xtype: 'form',
items: [{
- xtype: 'textfield',
- name: 'name',
- fieldLabel: Strings.sharedName,
- allowBlank: false
+ xtype: 'fieldset',
+ title: Strings.sharedRequired,
+ items: [{
+ xtype: 'textfield',
+ name: 'name',
+ fieldLabel: Strings.sharedName,
+ allowBlank: false
+ }, {
+ xtype: 'textfield',
+ name: 'uniqueId',
+ fieldLabel: Strings.deviceIdentifier,
+ allowBlank: false
+ }]
}, {
- xtype: 'textfield',
- name: 'uniqueId',
- fieldLabel: Strings.deviceIdentifier,
- allowBlank: false
- }, {
- xtype: 'combobox',
- name: 'groupId',
- fieldLabel: Strings.groupParent,
- store: 'Groups',
- queryMode: 'local',
- displayField: 'name',
- valueField: 'id'
- }, {
- xtype: 'textfield',
- name: 'phone',
- fieldLabel: Strings.sharedPhone
- }, {
- xtype: 'textfield',
- name: 'model',
- fieldLabel: Strings.deviceModel
- }, {
- xtype: 'textfield',
- name: 'contact',
- fieldLabel: Strings.deviceContact
- }, {
- xtype: 'combobox',
- name: 'category',
- fieldLabel: Strings.deviceCategory,
- store: 'DeviceImages',
- queryMode: 'local',
- displayField: 'name',
- valueField: 'key',
- editable: false,
- 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>';
+ xtype: 'fieldset',
+ title: Strings.sharedPreferences,
+ collapsible: true,
+ collapsed: true,
+ items: [{
+ xtype: 'combobox',
+ name: 'groupId',
+ fieldLabel: Strings.groupParent,
+ store: 'Groups',
+ queryMode: 'local',
+ displayField: 'name',
+ valueField: 'id'
+ }, {
+ xtype: 'textfield',
+ name: 'phone',
+ fieldLabel: Strings.sharedPhone
+ }, {
+ xtype: 'textfield',
+ name: 'model',
+ fieldLabel: Strings.deviceModel
+ }, {
+ xtype: 'textfield',
+ name: 'contact',
+ fieldLabel: Strings.deviceContact
+ }, {
+ xtype: 'combobox',
+ name: 'category',
+ fieldLabel: Strings.deviceCategory,
+ store: 'DeviceImages',
+ queryMode: 'local',
+ displayField: 'name',
+ valueField: 'key',
+ editable: false,
+ 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>';
+ }
}
- }
+ }]
}]
}
});