/**
  * Contructor
  * @param type $controller
  * @param type $name
  */
 public function __construct($controller, $name)
 {
     $gridEventConfig = ComingEventsForm::eventConfig();
     $GridFieldPast = new GridField('PastEvents', '', CalendarHelper::past_events()->sort('StartDateTime DESC'), $gridEventConfig);
     $fields = new FieldList($GridFieldPast);
     $actions = new FieldList();
     $this->addExtraClass('PastEventsForm');
     parent::__construct($controller, $name, $fields, $actions);
 }
 public function ComingEventsForm()
 {
     $form = new ComingEventsForm($this, "ComingEventsForm");
     $form->addExtraClass('cms-edit-form cms-panel-padded center ' . $this->BaseCSSClasses());
     return $form;
 }