<div class="row"> <div class="col-lg-12"> <a href="<?php echo $this->createUrl('index');?>"><button class="btn btn-green"><i class="fa fa-arrow-left" style="margin-right:8px;"></i>Regresar</button></a> <div style="margin:15px"></div> <div class="portlet portlet-default"> <div class="portlet-heading"> <div class="portlet-title"><h4>Información de la sección</h4></div> <div class="clearfix"></div> </div> <div class="portlet-body"> <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array( 'id'=>'secciones-form', 'enableAjaxValidation'=>false, 'method'=>'post', 'htmlOptions'=>array( 'enctype'=>'multipart/form-data' ) )); ?> <small>Campos con * son requeridos</small> <br> <?php echo $form->errorSummary($model,'Ha ocurrido un error!', null,array('class'=>'alert alert-error')); ?> <hr> <div class="form-group"><?php echo $form->textFieldRow($model,'seccion',array('class'=>'form-control','maxlength'=>255)); ?></div> <div class="form-group"><?php echo $form->textAreaRow($model,'contenido',array('rows'=>6, 'cols'=>50, 'class'=>'form-control')); ?></div> <div class="form-actions"> <?php $this->widget('bootstrap.widgets.TbButton', array( 'buttonType'=>'submit', 'type'=>'primary', 'htmlOptions'=> array('class'=>'btn btn-default'), 'label'=>$model->isNewRecord ? 'Crear' : 'Guardar', )); ?> <?php $this->widget('bootstrap.widgets.TbButton', array( 'buttonType'=>'reset', 'htmlOptions'=> array('class'=>'btn btn-default'), 'label'=>'Borrar', )); ?> </div> <?php $this->endWidget(); ?> </div> </div> <!-- /.portlet --> </div> </div> <?php $cs=Yii::app()->clientScript; $cs->registerScript('plugin_ck', '$(document).ready(function() { CKEDITOR.replace( "Secciones_contenido", { toolbar: "Full", height: 200, }); });',CClientScript::POS_END); ?>