本文整理汇总了PHP中Sonata\AdminBundle\Show\ShowMapper::tab方法的典型用法代码示例。如果您正苦于以下问题:PHP ShowMapper::tab方法的具体用法?PHP ShowMapper::tab怎么用?PHP ShowMapper::tab使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sonata\AdminBundle\Show\ShowMapper
的用法示例。
在下文中一共展示了ShowMapper::tab方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: configureShowFields
/**
* 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();
}
示例2: configureShowFields
/**
* 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();
}
示例3: configureShowFields
/**
* 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();
}
示例4: configureShowFields
/**
* 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();
}
示例5: configureShowFields
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();
}
示例6: configureShowFields
/**
* 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();
}