/** * Configure Show mapper. * * For a quick view. * * @param ShowMapper $showMapper */ protected function configureShowFields(ShowMapper $showMapper) { // Here we set the fields of the ShowMapper variable $showMapper->tab('Vote')->with('Information', array('class' => 'col-md-8', 'box_class' => 'box box-solid box-primary'))->add('site')->add('annuaire')->add('tracker')->add('point')->end()->end(); }
/** * Configure Show mapper. * * For a quick view. * * @param ShowMapper $showMapper */ protected function configureShowFields(ShowMapper $showMapper) { // Here we set the fields of the ShowMapper variable $showMapper->tab('General')->with('Information', array('class' => 'col-md-8', 'box_class' => 'box box-solid box-primary'))->add('name')->add('description')->add('url', 'url')->add('owner')->end()->end()->tab('Sites')->with('Data', array('class' => 'col-md-8', 'box_class' => 'box box-solid box-default'))->add('sites')->end()->end(); }
/** * Configure Show mapper by adding the validation tab. * * For a quick view. * * @param ShowMapper $showMapper */ public function configureShowFields(ShowMapper $showMapper) { // Here we set the fields of the ShowMapper variable $showMapper->tab('Validation')->with('Validation', array('class' => 'col-md-4', 'box_class' => 'box box-solid'))->add('validation.status', 'choice', array('choices' => array(Validation::ACCEPTE => 'Accepté', Validation::EN_ATTENTE => 'En attente', Validation::REFUSE => 'Refusé')))->add('validation.reason')->add('validation.validator')->add('validation.created')->add('validation.updated')->end()->end(); }
/** * Configure Show mapper by adding the validation tab. * * For a quick view. * * @param ShowMapper $showMapper */ public function configureShowFields(ShowMapper $showMapper) { // Here we set the fields of the ShowMapper variable $showMapper->tab('History')->with('History', array('class' => 'col-md-4', 'box_class' => 'box box-solid box-default'))->add('created')->add('ipCreator')->add('updated')->add('ipUpdater')->end()->end(); }
/** * Configure Show mapper. * * For a quick view. * * @param ShowMapper $showMapper */ protected function configureShowFields(ShowMapper $showMapper) { $showMapper->tab('Site')->with('Information', array('class' => 'col-md-8', 'box_class' => 'box box-solid box-primary'))->add('name')->add('description')->add('url', 'url')->add('owner')->end()->end()->tab('Site')->with('Annuaire', array('class' => 'col-md-8', 'box_class' => 'box box-solid box-default'))->add('annuaires')->end()->end(); }
public function configureShowFields(ShowMapper $showMapper) { $showMapper->tab('General')->with('Addresses', array('class' => 'col-md-8', 'box_class' => 'box box-solid box-danger', 'description' => 'Lorem ipsum'))->add('employee.surename')->add('employee.forename')->end()->end(); }
/** * Configure the show fields. * * @param ShowMapper $showMapper */ protected function configureShowFields(ShowMapper $showMapper) { // here we set the fields of the ShowMapper variable, // $showMapper (but this can be called anything) $showMapper->tab('General')->with('Information', array('class' => 'col-md-8', 'box_class' => 'box box-solid box-danger', 'description' => 'Lorem ipsum'))->add('id')->add('code')->add('name')->end()->end(); }