var BaseAnalysisFormModel = require('./base-analysis-form-model');
var template = require('./spatial-markov-trend.tpl');
var ColumnOptions = require('../column-options');

/**
 */
module.exports = BaseAnalysisFormModel.extend({
  initialize: function () {
    BaseAnalysisFormModel.prototype.initialize.apply(this, arguments);
    this._setSchema();
  },

  getTemplate: function () {
    return template;
  },

  /**
   * @override {BaseAnalysisFormModel._setSchema}
   */
  _setSchema: function () {
    var schema = {
      source: this._primarySourceSchemaItem(),
      time_columns: {
        type: 'Text',
        title: _t('editor.layers.analysis-form.time-columns')
      }
    };

    BaseAnalysisFormModel.prototype._setSchema.call(this, schema);
  }

});

@@ -405,16 +405,227 @@
 ;%0A  %7D,%0A%0A
+  _formatAttrs: function (formAttrs) %7B%0A    var attrs = _.clone(formAttrs)%0A    attrs.time_columns = attrs.time_columns.split(',');%0A    return BaseAnalysisFormModel.prototype._formatAttrs.call(this, attrs);%0A  %7D,%0A%0A
   /**%0A  

transform text to array