<?php

/* @var $this BadgeController */
/* @var $model Badge */

$this->breadcrumbs = array(
    yii::t('default', 'Badges') => array('index'),
    $model->number,
);

$this->widget('bootstrap.widgets.TbAlert');


$this->widget('ext.bootstrap.widgets.TbDetailView', array(
    'type' => 'striped',
    'cssFile' => Yii::app()->request->baseUrl . '/css/general/CDetailView/' . Yii::app()->language . '/styles.css',
    'data' => $model,
    'attributes' => array(
         'number',
            array(
                'type' => 'raw',
                'name' => 'type_id',
                'value' => $model->type->name,
            ),                 
        array(
            'name' => 'status',
            'value' => Yii::t('default', $model->status),
        ),
    ),
));
?>
<br />
<?php echo CHtml::link(Yii::t('default', 'Back'), array('index'), array('class' => 'btn primary')); ?>
&ensp;
<?php echo CHtml::link(Yii::t('default', 'Assign to person'), array('assignPersonToBadge','id'=>$model->id), array('class' => 'btn primary')); ?>

