aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 00:09:04 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 00:09:04 +1300
commit166237d0c15ea228105afa65958d8a2889aab05b (patch)
tree82ae954aa15942bef38ad9bf6ab9829060ede045
parent0050bbc93c118476ce799d3da9bb48a6ce4abfd7 (diff)
downloadtrackermap-web-166237d0c15ea228105afa65958d8a2889aab05b.tar.gz
trackermap-web-166237d0c15ea228105afa65958d8a2889aab05b.tar.bz2
trackermap-web-166237d0c15ea228105afa65958d8a2889aab05b.zip
Use icons for save and cancel buttons
-rw-r--r--web/app/view/AttributeAliasDialog.js10
-rw-r--r--web/app/view/AttributeAliases.js4
-rw-r--r--web/app/view/AttributeDialog.js10
-rw-r--r--web/app/view/BaseEditDialog.js10
-rw-r--r--web/app/view/DeviceDistanceDialog.js12
-rw-r--r--web/app/view/GeofenceDialog.js10
-rw-r--r--web/app/view/GeofenceMap.js12
-rw-r--r--web/app/view/ReportConfigDialog.js10
-rw-r--r--web/app/view/ServerDialog.js10
-rw-r--r--web/app/view/UserDialog.js10
10 files changed, 76 insertions, 22 deletions
diff --git a/web/app/view/AttributeAliasDialog.js b/web/app/view/AttributeAliasDialog.js
index 4a62f3e9..74b12490 100644
--- a/web/app/view/AttributeAliasDialog.js
+++ b/web/app/view/AttributeAliasDialog.js
@@ -42,10 +42,16 @@ Ext.define('Traccar.view.AttributeAliasDialog', {
},
buttons: [{
- text: Strings.sharedSave,
+ glyph: 'xf00c@FontAwesome',
+ tooltip: Strings.sharedSave,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'onSaveClick'
}, {
- text: Strings.sharedCancel,
+ glyph: 'xf00d@FontAwesome',
+ tooltip: Strings.sharedCancel,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'closeView'
}]
});
diff --git a/web/app/view/AttributeAliases.js b/web/app/view/AttributeAliases.js
index 7788ab21..c6934354 100644
--- a/web/app/view/AttributeAliases.js
+++ b/web/app/view/AttributeAliases.js
@@ -32,8 +32,10 @@ Ext.define('Traccar.view.AttributeAliases', {
tbar: {
xtype: 'editToolbar',
items: ['-', {
+ xtype: 'tbtext',
+ html: Strings.sharedDevice
+ }, {
xtype: 'combobox',
- fieldLabel: Strings.sharedDevice,
reference: 'deviceField',
store: 'Devices',
displayField: 'name',
diff --git a/web/app/view/AttributeDialog.js b/web/app/view/AttributeDialog.js
index 64448ad9..7d4908f9 100644
--- a/web/app/view/AttributeDialog.js
+++ b/web/app/view/AttributeDialog.js
@@ -39,10 +39,16 @@ Ext.define('Traccar.view.AttributeDialog', {
},
buttons: [{
- text: Strings.sharedSave,
+ glyph: 'xf00c@FontAwesome',
+ tooltip: Strings.sharedSave,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'onSaveClick'
}, {
- text: Strings.sharedCancel,
+ glyph: 'xf00d@FontAwesome',
+ tooltip: Strings.sharedCancel,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'closeView'
}]
});
diff --git a/web/app/view/BaseEditDialog.js b/web/app/view/BaseEditDialog.js
index ee72965a..7ccaad39 100644
--- a/web/app/view/BaseEditDialog.js
+++ b/web/app/view/BaseEditDialog.js
@@ -24,10 +24,16 @@ Ext.define('Traccar.view.BaseEditDialog', {
}, {
xtype: 'tbfill'
}, {
- text: Strings.sharedSave,
+ glyph: 'xf00c@FontAwesome',
+ tooltip: Strings.sharedSave,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'onSaveClick'
}, {
- text: Strings.sharedCancel,
+ glyph: 'xf00d@FontAwesome',
+ tooltip: Strings.sharedCancel,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'closeView'
}]
});
diff --git a/web/app/view/DeviceDistanceDialog.js b/web/app/view/DeviceDistanceDialog.js
index 677a6c12..ea85bec1 100644
--- a/web/app/view/DeviceDistanceDialog.js
+++ b/web/app/view/DeviceDistanceDialog.js
@@ -44,12 +44,16 @@ Ext.define('Traccar.view.DeviceDistanceDialog', {
}],
buttons: [{
- text: Strings.sharedSet,
- disabled: true,
- reference: 'setButton',
+ glyph: 'xf00c@FontAwesome',
+ tooltip: Strings.sharedSet,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'onSetClick'
}, {
- text: Strings.sharedCancel,
+ glyph: 'xf00d@FontAwesome',
+ tooltip: Strings.sharedCancel,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'closeView'
}]
});
diff --git a/web/app/view/GeofenceDialog.js b/web/app/view/GeofenceDialog.js
index df8331e1..9f5bdbf7 100644
--- a/web/app/view/GeofenceDialog.js
+++ b/web/app/view/GeofenceDialog.js
@@ -50,10 +50,16 @@ Ext.define('Traccar.view.GeofenceDialog', {
}, {
xtype: 'tbfill'
}, {
- text: Strings.sharedSave,
+ glyph: 'xf00c@FontAwesome',
+ tooltip: Strings.sharedSave,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'onSaveClick'
}, {
- text: Strings.sharedCancel,
+ glyph: 'xf00d@FontAwesome',
+ tooltip: Strings.sharedCancel,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'closeView'
}]
});
diff --git a/web/app/view/GeofenceMap.js b/web/app/view/GeofenceMap.js
index 71d52f1e..e175a043 100644
--- a/web/app/view/GeofenceMap.js
+++ b/web/app/view/GeofenceMap.js
@@ -40,11 +40,17 @@ Ext.define('Traccar.view.GeofenceMap', {
}, {
xtype: 'tbfill'
}, {
- text: Strings.sharedSave,
+ glyph: 'xf00c@FontAwesome',
+ tooltip: Strings.sharedSave,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'onSaveClick'
}, {
- text: Strings.sharedCancel,
- handler: 'onCancelClick'
+ glyph: 'xf00d@FontAwesome',
+ tooltip: Strings.sharedCancel,
+ tooltipType: 'title',
+ minWidth: 0,
+ handler: 'closeView'
}]
},
diff --git a/web/app/view/ReportConfigDialog.js b/web/app/view/ReportConfigDialog.js
index d1161e0d..39e6ae15 100644
--- a/web/app/view/ReportConfigDialog.js
+++ b/web/app/view/ReportConfigDialog.js
@@ -90,10 +90,16 @@ Ext.define('Traccar.view.ReportConfigDialog', {
}],
buttons: [{
- text: Strings.sharedSave,
+ glyph: 'xf00c@FontAwesome',
+ tooltip: Strings.sharedSave,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'onSaveClick'
}, {
- text: Strings.sharedCancel,
+ glyph: 'xf00d@FontAwesome',
+ tooltip: Strings.sharedCancel,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'closeView'
}]
});
diff --git a/web/app/view/ServerDialog.js b/web/app/view/ServerDialog.js
index c8122309..0f965885 100644
--- a/web/app/view/ServerDialog.js
+++ b/web/app/view/ServerDialog.js
@@ -119,10 +119,16 @@ Ext.define('Traccar.view.ServerDialog', {
}, {
xtype: 'tbfill'
}, {
- text: Strings.sharedSave,
+ glyph: 'xf00c@FontAwesome',
+ tooltip: Strings.sharedSave,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'onSaveClick'
}, {
- text: Strings.sharedCancel,
+ glyph: 'xf00d@FontAwesome',
+ tooltip: Strings.sharedCancel,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'closeView'
}]
});
diff --git a/web/app/view/UserDialog.js b/web/app/view/UserDialog.js
index e77a9527..479d66dc 100644
--- a/web/app/view/UserDialog.js
+++ b/web/app/view/UserDialog.js
@@ -125,10 +125,16 @@ Ext.define('Traccar.view.UserDialog', {
}, {
xtype: 'tbfill'
}, {
- text: Strings.sharedSave,
+ glyph: 'xf00c@FontAwesome',
+ tooltip: Strings.sharedSave,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'onSaveClick'
}, {
- text: Strings.sharedCancel,
+ glyph: 'xf00d@FontAwesome',
+ tooltip: Strings.sharedCancel,
+ tooltipType: 'title',
+ minWidth: 0,
handler: 'closeView'
}]
});