<?php
/* @var $this MessageController */
/* @var $model Message */
/* @var $form CActiveForm */
?>
<div class="col-xs-12">
    <?php
    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id' => 'message-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,
    ));
    ?>
    <?php // echo $form->errorSummary($model); ?>



    <div class="form-group">
        <label class="col-md-3 control-label"><?php echo Yii::t('admin', 'Source Message:'); ?></label>
        <div class="col-md-5 controls">
            <div class="form-control ">
                <?php echo CHtml::encode($sourceMessage->message); ?>
            </div>
        </div>
    </div>

    <?php echo $form->dropDownListControlGroup($model, 'language', FlexLocale::getActiveLocales()); ?>

    <?php echo $form->textAreaControlGroup($model, 'translation', array('rows' => 6, 'cols' => 50)); ?>

    <?php echo TbHtml::formActions(array(TbHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::resetButton('Reset'),)); ?>

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

    <?php $this->endWidget(); ?>
</div>