<?php 
echo $form->errorSummary($model);
?>

            <?php 
echo $form->textFieldControlGroup($model, 'phone', array('span' => 5, 'maxlength' => 60));
?>

            <?php 
//echo $form->textFieldControlGroup($model,'city_id',array('span'=>5));
echo $form->dropDownListControlGroup($model, 'city_id', CHtml::listData(City::model()->findAll('main_city=1', array('order' => 'city')), 'id', 'city'), array('disabled' => !$model->isNewRecord ? true : false));
?>

            <?php 
//echo $form->textFieldControlGroup($model,'template_id',array('span'=>5));
echo $form->dropDownListControlGroup($model, 'tpl_id', CHtml::listData(Phone::getTemplatesFromModx(), 'id', 'templatename'));
?>


            <?php 
//echo $form->textFieldControlGroup($model,'template_id',array('span'=>5));
echo $form->dropDownListControlGroup($model, 'site_id', CHtml::listData(Site::model()->findAll(), 'id', 'site'), array('disabled' => !$model->isNewRecord ? true : false));
?>

        <div class="form-actions">
        <?php 
echo TbHtml::submitButton($model->isNewRecord ? 'Добавить' : 'Сохранить', array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'size' => TbHtml::BUTTON_SIZE_LARGE));
?>
    </div>

    <?php