<?php
/* @var $this CommentController */
/* @var $model Comment */
/* @var $form CActiveForm */
?>

<div class="col-xs-12">

    <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'comment-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>true,
)); ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

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

                    <?php echo $form->textFieldControlGroup($model,'sender_name',array('maxlength'=>100)); ?>
        
                    <?php echo $form->textFieldControlGroup($model,'sender_email',array('maxlength'=>100)); ?>
        
                    <?php echo $form->textFieldControlGroup($model,'sender_homepage',array('maxlength'=>100)); ?>
        
                    <?php echo $form->textAreaControlGroup($model,'body',array('rows'=>6, 'cols'=>50)); ?>
        
                    <?php echo $form->textFieldControlGroup($model,'ip_address'); ?>
        
                    <?php echo $form->textFieldControlGroup($model,'country',array('maxlength'=>2)); ?>
        
                    <?php echo $form->textFieldControlGroup($model,'user_agent',array('maxlength'=>300)); ?>
        
                    <?php echo $form->textFieldControlGroup($model,'status'); ?>
        
                    <?php echo $form->textFieldControlGroup($model,'create_datetime'); ?>
        
                    <?php echo $form->textFieldControlGroup($model,'update_datetime'); ?>
        
                    <?php echo $form->textFieldControlGroup($model,'owner_route',array('maxlength'=>100)); ?>
        
                    <?php echo $form->textFieldControlGroup($model,'owner_params',array('maxlength'=>300)); ?>
        
                    <?php echo $form->textFieldControlGroup($model,'parent_id'); ?>
        
    
    <?php
                            echo TbHtml::formActions(array(
                                    TbHtml::submitButton($model->isNewRecord ? Yii::t('admin', 'Create') : Yii::t('admin', 'Save'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY)),
                                    TbHtml::resetButton(Yii::t('admin', 'Reset')),
                                ));
                            ?>    
    <?php $this->endWidget(); ?>

</div>