diff options
author | Abyss777 <abyss@fox5.ru> | 2018-03-19 12:34:49 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2018-03-19 12:34:49 +0500 |
commit | ebccd5864e93312321c0226d603e453f6cdeec25 (patch) | |
tree | aa8355566da6cf6064b4119c07ecc39feae326d7 /web/app/view/edit | |
parent | 464aa58c49ac5e04d419a68b6ee5bcf9d0c36798 (diff) | |
download | etbsa-traccar-web-ebccd5864e93312321c0226d603e453f6cdeec25.tar.gz etbsa-traccar-web-ebccd5864e93312321c0226d603e453f6cdeec25.tar.bz2 etbsa-traccar-web-ebccd5864e93312321c0226d603e453f6cdeec25.zip |
Add Calendar column to some grids
Diffstat (limited to 'web/app/view/edit')
-rw-r--r-- | web/app/view/edit/Geofences.js | 12 | ||||
-rw-r--r-- | web/app/view/edit/Notifications.js | 14 |
2 files changed, 23 insertions, 3 deletions
diff --git a/web/app/view/edit/Geofences.js b/web/app/view/edit/Geofences.js index 9c564bc..0e1e677 100644 --- a/web/app/view/edit/Geofences.js +++ b/web/app/view/edit/Geofences.js @@ -1,5 +1,5 @@ /* - * Copyright 2016 Anton Tananaev (anton@traccar.org) + * Copyright 2016 - 2018 Anton Tananaev (anton@traccar.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -48,6 +48,16 @@ Ext.define('Traccar.view.edit.Geofences', { text: Strings.sharedDescription, dataIndex: 'description', filter: 'string' + }, { + text: Strings.sharedCalendar, + dataIndex: 'calendarId', + hidden: true, + filter: { + type: 'list', + labelField: 'name', + store: 'AllCalendars' + }, + renderer: Traccar.AttributeFormatter.getFormatter('calendarId') }] } }); diff --git a/web/app/view/edit/Notifications.js b/web/app/view/edit/Notifications.js index e17100a..3620682 100644 --- a/web/app/view/edit/Notifications.js +++ b/web/app/view/edit/Notifications.js @@ -1,6 +1,6 @@ /* - * Copyright 2017 Anton Tananaev (anton@traccar.org) - * Copyright 2017 Andrey Kunitsyn (andrey@traccar.org) + * Copyright 2017 - 2018 Anton Tananaev (anton@traccar.org) + * Copyright 2017 - 2018 Andrey Kunitsyn (andrey@traccar.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -74,6 +74,16 @@ Ext.define('Traccar.view.edit.Notifications', { dataIndex: 'sms', renderer: Traccar.AttributeFormatter.getFormatter('sms'), filter: 'boolean' + }, { + text: Strings.sharedCalendar, + dataIndex: 'calendarId', + hidden: true, + filter: { + type: 'list', + labelField: 'name', + store: 'AllCalendars' + }, + renderer: Traccar.AttributeFormatter.getFormatter('calendarId') }] } }); |