5 return baseclass
.extend({
6 title
: _('CSV Plugin Configuration'),
7 description
: _('The csv plugin stores collected data in csv file format for further processing by external programs.'),
9 addFormOptions: function(s
) {
12 o
= s
.option(form
.Flag
, 'enable', _('Enable this plugin'));
14 o
= s
.option(form
.Value
, 'DataDir', _('Storage directory for the csv files'));
15 o
.default = '/tmp/csv';
16 o
.depends('enable', '1');
18 o
= s
.option(form
.Flag
, 'StoreRates', _('Store data values as rates instead of absolute values'));
19 o
.depends('enable', '1');
22 configSummary: function(section
) {
24 return _('Storing CSV data in %s').format(section
.DataDir
);