</li>
                        </ul>
                    </dd>
                </dl>
            </div>
        </div>
        <?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'edit-user-info-main', 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
?>
        <div class="client_info">
            Параметры клиента:
        </div>
        <div class="form-group">
            <select name="MainClients[priority_id]" class="styled status circle" data-placeholder="Все приоритеты">
                <?php 
$statuses_array = ClientsPriority::model()->findAll();
foreach ($statuses_array as $status) {
    echo '<option ' . ($client->priority_id == $status->id ? ' selected="selected"' : '') . ' class="' . $status->color . '" value="' . $status->id . '">' . $status->name . '</option>';
}
?>
            </select>
            <span class="star">*</span>
        </div>
        <div class="form-group">
            <?php 
echo $form->dropDownList($client, 'group_id', CHtml::listData(ClientsGroups::model()->findAll('company_id=' . $user->company_id), "id", "name"), array('class' => 'styled', 'data-placeholder' => 'Группа клиента'));
?>
            <span class="star">*</span>
        </div>
        <div class="form-group">
            <?php 
 public function actionSettings_clients_priority()
 {
     $user = Users::model()->findByPk(Yii::app()->user->id);
     $prioritys = new ClientsPriority();
     $prioritys_table_data = $prioritys->search();
     $this->render('settings_clients_priority', array('user' => $user, 'prioritys' => $prioritys, 'prioritys_table_data' => $prioritys_table_data));
 }