Exemplo n.º 1
0
<?php

/* @var $this ServiceController */
/* @var $model Service */
?>

<?php 
$this->menu = array(array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Управление услугами', 'url' => array('admin')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Создать услугу', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-edit', 'label' => 'Изменить услугу', 'url' => array('update', 'id' => $model->id)), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Удалить услугу', 'url' => array('delete', 'id' => $model->id), 'onclick' => "return confirm('Вы уверены, что хотите удалить услугу?');"));
?>

<h1><?php 
echo $model->title;
?>
</h1>

<?php 
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('id', 'title', array("name" => 'type', 'value' => ServiceHelper::getTranslatedTypeName($model->type)), 'price', 'duration', 'comments', 'sortOrder', 'readOnly', 'defaultCount')));