aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/GeofenceDialog.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-03 13:00:03 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-03 13:00:03 +1200
commit7ae587d430e793bbd9afd5607f7d266816af127a (patch)
tree537ab0d4fa2f2e144ea5ae082fc559d08dc206ad /web/app/view/GeofenceDialog.js
parentbac0d9090c1a8906f7d3c0a56da58c33495fd6db (diff)
downloadtrackermap-server-7ae587d430e793bbd9afd5607f7d266816af127a.tar.gz
trackermap-server-7ae587d430e793bbd9afd5607f7d266816af127a.tar.bz2
trackermap-server-7ae587d430e793bbd9afd5607f7d266816af127a.zip
Add dialog for geofence area selection
Diffstat (limited to 'web/app/view/GeofenceDialog.js')
-rw-r--r--web/app/view/GeofenceDialog.js22
1 files changed, 18 insertions, 4 deletions
diff --git a/web/app/view/GeofenceDialog.js b/web/app/view/GeofenceDialog.js
index a3100a797..fa3bbe87f 100644
--- a/web/app/view/GeofenceDialog.js
+++ b/web/app/view/GeofenceDialog.js
@@ -15,13 +15,13 @@
*/
Ext.define('Traccar.view.GeofenceDialog', {
- extend: 'Traccar.view.BaseEditDialog',
+ extend: 'Traccar.view.BaseDialog',
requires: [
- 'Traccar.view.BaseEditDialogController'
+ 'Traccar.view.GeofenceDialogController'
],
- controller: 'baseEditDialog',
+ controller: 'geofenceDialog',
title: Strings.sharedGeofence,
items: {
@@ -35,5 +35,19 @@ Ext.define('Traccar.view.GeofenceDialog', {
name: 'description',
fieldLabel: Strings.sharedDescription
}]
- }
+ },
+
+ buttons: [{
+ text: Strings.sharedArea,
+ glyph: 'xf21d@FontAwesome',
+ handler: 'onAreaClick'
+ }, {
+ xtype: 'tbfill'
+ }, {
+ text: Strings.sharedSave,
+ handler: 'onSaveClick'
+ }, {
+ text: Strings.sharedCancel,
+ handler: 'closeView'
+ }]
});