<?php
/* @var $this FaqController */
/* @var $model Faq */
/* @var $form CActiveForm */
?>

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

    <?php
    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id' => 'faq-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' => false,
    ));
    ?>

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

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



    <?php echo $form->textAreaControlGroup($model, 'question', array('rows' => 6, 'cols' => 50)); ?>
    <?php //echo $form->textAreaControlGroup($model, 'answer', array('rows' => 6, 'cols' => 50)); ?>
      <div class="widget-body">
            <div class="control-group clearfix ">
                <div class="clearfix clear">
                    <?php
                    $this->widget('ext.fckeditor.FCKEditor', array(
                        'model' => $model,
                        'attribute' => 'answer',
                    ));
                    ?>
                </div>
            </div>
        </div>
        <br>
    <?php echo $form->textAreaControlGroup($model, 'en_question', array('rows' => 6, 'cols' => 50)); ?>
    <?php //echo $form->textAreaControlGroup($model, 'en_answer', array('rows' => 6, 'cols' => 50)); ?>
     <div class="widget-body">
            <div class="control-group clearfix ">
                <div class="clearfix clear">
                    <?php
                    $this->widget('ext.fckeditor.FCKEditor', array(
                        'model' => $model,
                        'attribute' => 'en_answer',
                    ));
                    ?>
                </div>
            </div>
        </div>
        <br>
        <?php echo $form->textFieldControlGroup($model,'sort'); ?>


    <?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>