aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/ReportConfigDialog.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-01 13:07:15 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-01-01 13:07:15 +1300
commitfc74937a487be1f7049cbab79216834f044b6a99 (patch)
tree0fe28ff77e97281796811aa04c77266a90ae4859 /web/app/view/ReportConfigDialog.js
parentdc2ceba479c50d34a3d4c305edaf938a2df391a9 (diff)
downloadtrackermap-web-fc74937a487be1f7049cbab79216834f044b6a99.tar.gz
trackermap-web-fc74937a487be1f7049cbab79216834f044b6a99.tar.bz2
trackermap-web-fc74937a487be1f7049cbab79216834f044b6a99.zip
Reduce width of report config dialog
Diffstat (limited to 'web/app/view/ReportConfigDialog.js')
-rw-r--r--web/app/view/ReportConfigDialog.js16
1 files changed, 6 insertions, 10 deletions
diff --git a/web/app/view/ReportConfigDialog.js b/web/app/view/ReportConfigDialog.js
index 421d0fe0..40a69590 100644
--- a/web/app/view/ReportConfigDialog.js
+++ b/web/app/view/ReportConfigDialog.js
@@ -30,8 +30,8 @@ Ext.define('Traccar.view.ReportConfigDialog', {
items: [{
fieldLabel: Strings.reportDevice,
xtype: 'tagfield',
- width: Traccar.Style.reportTagfieldWidth,
reference: 'deviceField',
+ maxWidth: Traccar.Style.formFieldWidth,
store: 'Devices',
valueField: 'id',
displayField: 'name',
@@ -39,8 +39,8 @@ Ext.define('Traccar.view.ReportConfigDialog', {
}, {
fieldLabel: Strings.reportGroup,
xtype: 'tagfield',
- width: Traccar.Style.reportTagfieldWidth,
reference: 'groupField',
+ maxWidth: Traccar.Style.formFieldWidth,
store: 'Groups',
valueField: 'id',
displayField: 'name',
@@ -48,7 +48,6 @@ Ext.define('Traccar.view.ReportConfigDialog', {
}, {
fieldLabel: Strings.reportEventTypes,
xtype: 'tagfield',
- width: Traccar.Style.reportTagfieldWidth,
reference: 'eventTypeField',
store: 'ReportEventTypes',
hidden: true,
@@ -58,7 +57,6 @@ Ext.define('Traccar.view.ReportConfigDialog', {
}, {
fieldLabel: Strings.reportChartType,
xtype: 'combobox',
- width: Traccar.Style.reportTagfieldWidth,
reference: 'chartTypeField',
store: 'ReportChartTypes',
hidden: true,
@@ -75,10 +73,10 @@ Ext.define('Traccar.view.ReportConfigDialog', {
value: false
}, {
xtype: 'fieldcontainer',
- layout: 'hbox',
+ layout: 'vbox',
+ fieldLabel: Strings.reportFrom,
items: [{
xtype: 'datefield',
- fieldLabel: Strings.reportFrom,
reference: 'fromDateField',
startDay: Traccar.Style.weekStartDay,
format: Traccar.Style.dateFormat,
@@ -86,15 +84,14 @@ Ext.define('Traccar.view.ReportConfigDialog', {
}, {
xtype: 'customTimeField',
reference: 'fromTimeField',
- maxWidth: Traccar.Style.reportTime,
value: new Date(new Date().getTime() - 30 * 60 * 1000)
}]
}, {
xtype: 'fieldcontainer',
- layout: 'hbox',
+ layout: 'vbox',
+ fieldLabel: Strings.reportTo,
items: [{
xtype: 'datefield',
- fieldLabel: Strings.reportTo,
reference: 'toDateField',
startDay: Traccar.Style.weekStartDay,
format: Traccar.Style.dateFormat,
@@ -102,7 +99,6 @@ Ext.define('Traccar.view.ReportConfigDialog', {
}, {
xtype: 'customTimeField',
reference: 'toTimeField',
- maxWidth: Traccar.Style.reportTime,
value: new Date()
}]
}],