/**
  * Creates the presentation add/edit form
  * @return  PresentationForm
  */
 public function PresentationForm()
 {
     $form = PresentationForm::create($this, "PresentationForm", FieldList::create(FormAction::create('savePresentationSummary', 'Save and continue')));
     if ($data = Session::get("FormInfo.{$form->FormName()}.data")) {
         $form->loadDataFrom($data);
         return $form;
     }
     // ugh...
     if ($this->presentation->OtherTopic && !$this->presentation->CategoryID) {
         $this->presentation->CategoryID = 'other';
     }
     return $form->loadDataFrom($this->presentation);
 }
 /**
  * Creates the presentation add/edit form
  * 
  * @return  PresentationForm
  */
 public function PresentationForm()
 {
     $save = $this->presentation->isInDB() ? 'Save presentation details' : 'Save and continue <i class="fa fa-arrow-right fa-end"></i>';
     $form = PresentationForm::create($this, "PresentationForm", FieldList::create(FormAction::create('savePresentationSummary', $save)));
     if ($data = Session::get("FormInfo.{$form->FormName()}.data")) {
         return $form->loadDataFrom($data);
     }
     // ugh...
     if ($this->presentation->OtherTopic && !$this->presentation->CategoryID) {
         $this->presentation->CategoryID = 'other';
     }
     return $form->loadDataFrom($this->presentation);
 }
 /**
  * Creates the presentation add/edit form
  * @return  PresentationForm
  */
 public function PresentationForm()
 {
     $form = PresentationForm::create($this, "PresentationForm", FieldList::create(FormAction::create('savePresentationSummary', 'Save and continue')->addExtraClass('btn-primary')), $this->Summit(), $this->parent->getPresentationManager(), $this->presentation);
     if ($data = Session::get("FormInfo.{$form->FormName()}.data")) {
         $form->loadDataFrom($data);
         return $form;
     }
     return $this->presentation->exists() ? $form->loadDataFrom($this->presentation) : $form;
 }