<?php 
$this->widget('bootstrap.widgets.TbButtonGroup', array(
//     'type' => 'primary',
    'toggle' => 'radio', // 'checkbox' or 'radio'
    'htmlOptions'=>array(
	'id'=>'selectViewMode',
	'class'=>'pull-right',
	'data-translation-target'=>'ANALYTICS_VIEW_MODE'
    ),
    'buttons' => array(
        array( 
	  'id'=>'grouped',
	  'icon'=>'signal',
	  'encodeLabel'=>false, 
  	  'label'=>'&nbsp;',//__('ANALYTICS_VIEW_MODE_GROUPED'),
	  'htmlOptions'=>array(
	      'id'=>'grouped',
              'data-translation-id' => 'ANALYTICS_VIEW_MODE_GROUPED',
              'title' => __('ANALYTICS_VIEW_MODE_GROUPED'),
	      'onclick'=>'transitionGrouped()', 
	  )
	),
        array(
	  
	  'active'=>true,
	  'encodeLabel'=>false,
	  'icon'=>'reorder',
 	  'label'=>'&nbsp;',//__('ANALYTICS_VIEW_MODE_STACKED'),
          'htmlOptions'=>array(
	      'id'=>'stacked',
              'data-translation-id' => 'ANALYTICS_VIEW_MODE_STACKED',
              'title' => __('ANALYTICS_VIEW_MODE_STACKED'),
	      'onclick'=>'transitionStacked()',
          )
        ),
    ),
));

  if (app()->user->translateMode) {
    echo "<i data-translation-target='ANALYTICS_VIEW_MODE' data-translation-id='ANALYTICS_VIEW_MODE_GROUPED'></i>";
    echo "<i data-translation-target='ANALYTICS_VIEW_MODE' data-translation-id='ANALYTICS_VIEW_MODE_STACKED'></i>";
  }

?>