/**
  * @param FormBuilder $fb
  */
 public function buildForm(FormBuilder $fb)
 {
     $fb->text('title')->label('Title');
     $fb->modelSelect('page_id')->alias('page')->label('Page')->model('Boyhagemann\\Pages\\Model\\Page');
     $fb->modelSelect('container_id')->alias('container')->label('Container')->model('Boyhagemann\\Navigation\\Model\\Container');
     $fb->text('icon_class')->label('Icon class');
     $fb->text('color')->label('Hex color');
 }
 /**
  * @param FormBuilder $fb
  */
 public function buildForm(FormBuilder $fb)
 {
     $fb->modelSelect('page_id')->alias('page')->label('Page')->model('Boyhagemann\\Pages\\Model\\Page');
     $fb->modelSelect('section_id')->alias('section')->label('Section')->model('Boyhagemann\\Pages\\Model\\Section');
     $fb->modelSelect('block_id')->alias('block')->label('Block')->model('Boyhagemann\\Pages\\Model\\Block');
     $fb->text('controller')->label('Controller');
     $fb->textarea('params')->label('Params');
     $fb->textarea('match')->label('Match url params');
     $fb->checkbox('global')->label('Is globally available?');
 }
 /**
  * @param FormBuilder $fb
  */
 public function buildForm(FormBuilder $fb)
 {
     $fb->text('title')->label('Title');
     $fb->text('route')->label('Route');
     $fb->modelSelect('layout_id')->alias('layout')->label('Layout')->model('Boyhagemann\\Pages\\Model\\Layout');
     $fb->select('method')->label('Method')->choices(array('get' => 'GET', 'post' => 'POST', 'put' => 'PUT', 'patch' => 'PATCH', 'delete' => 'DELETE'))->value('get');
 }
 /**
  * @param FormBuilder $fb
  */
 public function buildForm(FormBuilder $fb)
 {
     $fb->modelSelect('block_id')->model('Boyhagemann\\Content\\Model\\Block');
     $fb->hidden('layout_id');
     $fb->hidden('page_id');
     $fb->hidden('section_id');
     $fb->hidden('position')->value(0);
 }
 /**
  * @param FormBuilder $fb
  */
 public function buildForm(FormBuilder $fb)
 {
     $fb->text('title')->label('Title');
     $fb->textarea('description')->label('Description')->rows(3);
     $fb->modelSelect('page_id')->model('Boyhagemann\\Pages\\Model\\Page')->label('Page');
     $fb->hidden('container_id')->value($this->getContainer()->id);
     $fb->text('icon_class')->label('Icon class');
 }
 /**
  * @param FormBuilder $fb
  */
 public function buildForm(FormBuilder $fb)
 {
     $fb->text('title')->label('Title');
     $fb->text('name')->label('Name');
     $fb->modelSelect('layout_id')->label('Layout')->model('Boyhagemann\\Pages\\Model\\Layout');
 }