当前位置: 首页>>代码示例>>PHP>>正文


PHP ShowMapper::tab方法代码示例

本文整理汇总了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();
 }
开发者ID:alexandre-t,项目名称:pokeme,代码行数:12,代码来源:VoteAdmin.php

示例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();
 }
开发者ID:alexandre-t,项目名称:pokeme,代码行数:12,代码来源:AnnuaireAdmin.php

示例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();
 }
开发者ID:alexandre-t,项目名称:pokeme,代码行数:12,代码来源:ValidationAdminExtension.php

示例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();
 }
开发者ID:alexandre-t,项目名称:pokeme,代码行数:12,代码来源:HistoryAdminExtension.php

示例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();
 }
开发者ID:Nexotap,项目名称:Ivory,代码行数:4,代码来源:PayrollAdmin.php

示例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();
 }
开发者ID:Alexandre-T,项目名称:jeu-de-role,代码行数:11,代码来源:RegistryAdmin.php


注:本文中的Sonata\AdminBundle\Show\ShowMapper::tab方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。