protected function addBlogEntryForm() { $form = Form::load('logbook.views.AddBlogEntry'); $form->setInputValue('author_id',Logbook::current()->authorId()); $form->setOptions('access_id',PilotSetup::allAccess()); return $form; }
protected function editBlogEntryForm() { $form = Form::load('logbook.views.EditBlogEntry'); $form->setOptions('access_id',PilotSetup::allAccess()); $form->setInputValues($this->entryToEdit()); $form->setInputValue('entry_tags',$this->entryToEdit()->csvTagString()); return $form; }