diff options
Diffstat (limited to 'web/app/view/UserDialog.js')
-rw-r--r-- | web/app/view/UserDialog.js | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/web/app/view/UserDialog.js b/web/app/view/UserDialog.js index 07fc1431f..f9e704ee5 100644 --- a/web/app/view/UserDialog.js +++ b/web/app/view/UserDialog.js @@ -24,7 +24,7 @@ Ext.define('Traccar.view.UserDialog', { controller: 'userDialog', title: Strings.settingsUser, - items: [{ + items: { xtype: 'form', items: [{ xtype: 'textfield', @@ -71,16 +71,19 @@ Ext.define('Traccar.view.UserDialog', { valueField: 'key' }, { xtype: 'numberfield', + reference: 'latitude', name: 'latitude', fieldLabel: Strings.positionLatitude, decimalPrecision: Traccar.Style.coordinatePrecision }, { xtype: 'numberfield', + reference: 'longitude', name: 'longitude', fieldLabel: Strings.positionLongitude, decimalPrecision: Traccar.Style.coordinatePrecision }, { xtype: 'numberfield', + reference: 'zoom', name: 'zoom', fieldLabel: Strings.serverZoom }, { @@ -89,5 +92,24 @@ Ext.define('Traccar.view.UserDialog', { fieldLabel: Strings.settingsTwelveHourFormat, allowBlank: false }] + }, + + buttons: [{ + text: Strings.sharedAttributes, + handler: 'showAttributesView' + }, { + glyph: 'xf041@FontAwesome', + minWidth: 0, + handler: 'getMapState', + tooltip: Strings.sharedGetMapState, + tooltipType: 'title' + }, { + xtype: 'tbfill' + }, { + text: Strings.sharedSave, + handler: 'onSaveClick' + }, { + text: Strings.sharedCancel, + handler: 'closeView' }] }); |