Пример #1
0
		 /* array(
			'name'  => 'name',
			'type'  => 'raw',
			'value' => 'CHtml::link(CHtml::encode($data->name), array("update", "id"=>$data->id))',
		),
		array(
			'name'=>'email',
		), */
		array(
			'header' => 'Отзыв',
			'name'=>'text',
			// 'value'=>'Comment::truncate($data, 100)'
		),
		array(
			'name'=>'status',
			'filter'=>CommentSpec::getStatuses(),
			'value'=>'$data->statusTitle',
		),
		array(
			'header' => 'Оценка',
			'name'=>'rating',
			'filter'=>false
		),
		
		array(
			'header' => 'Специалист',
            'type'=>'raw',
			'value'=>'CHtml::link($data->getOwner_title(), $data->getViewUrlAdmin(), array("target"=>"_blank"))',
			'filter'=>false
		),
Пример #2
0
            <div class="col-md-11 col-sm-10">
            <?php echo $form->textArea($model, 'text', 
                array(
                    'class'=>'form-control',
                    'rows'=>5,
                    'placeholder'=>'Отзыв'
                )); 
                ?>

            </div>
        </div> <!-- / .form-group -->
        <div class="form-group">
                <?php echo $form->label($model, 'status',  array('class'=>'col-md-1 col-sm-2 control-label')); ?>
                <div class="col-md-11 col-sm-10">
                <?php
                echo $form->dropDownList($model, 'status', CommentSpec::getStatuses(), array(
                        'encode'=>false,
                       // 'empty'=>'Выбрать',
                        'class'=>'form-control',    
                ));

                ?>
                </div>
        </div>
  

       

<div style="margin-bottom: 0;" class="form-group">
            <div class="col-md-offset-1 col-md-11 col-sm-offset-2 col-sm-10">
                <button class="btn btn-primary" type="submit"><?php echo $model->isNewRecord ? 'Создать' : 'Сохранить'; ?></button>