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

    <?php echo $form->textFieldControlGroup($model, 'title', array('maxlength' => 100)); ?>


    <div class="widget-box">
        <div class="widget-header  widget-header-flat">
            <h4><?php echo $model->generateAttributeLabel('content') ?></h4>
        </div>
        <div class="widget-body">
            <div class="control-group clearfix ">
                <div class="clearfix clear">
                    <?php
                    $this->widget('ext.fckeditor.FCKEditor', array(
                        'model' => $model,
                        'attribute' => 'content',
                    ));
                    ?>
                </div>
            </div>
        </div>
    </div>



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

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

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