echo $form->labelEx($model, 'realizado', array('class' => 'control-label')); ?> <div class="controls span4"> <style type="text/css"> .toggle-button label { z-index: 1; } </style> <?php $this->widget('ext.bootstrap.widgets.TbToggleButton', array('model' => $model, 'enabledLabel' => 'SI', 'disabledLabel' => 'NO', 'width' => 100, 'attribute' => 'realizado')); ?> </div> </div> <?php echo $form->dropDownListRow($model, 'tarea_id', array('' => ' -- Seleccione -- ') + CHtml::listData(Tarea::model()->findAll(), 'id', Tarea::representingColumn()), array('placeholder' => null)); ?> <div class="form-actions bg-silver"> <div class="form-actions-float"> <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'success', 'label' => $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save'))); ?> <?php $this->widget('bootstrap.widgets.TbButton', array('label' => Yii::t('AweCrud.app', 'Cancel'), 'htmlOptions' => array('onclick' => 'javascript:history.go(-1)'))); ?> </div> </div> </div> </div> </div> </div>
<!-- widget header --> <div class="widget-header bg-cyan"> <!-- widget title --> <h4 class="widget-title"><i class="aweso-tasks"></i> <?php echo Yii::t('AweCrud.app', 'Manage'); ?> <?php echo TareaObjetivo::label(2); ?> </h4> <!-- widget action, you can also use btn, btn-group, nav-tabs or nav-pills (also support dropdown). enjoy! --> <div class="widget-action"> <button data-toggle="collapse" data-collapse="#widget-button" class="btn"> <i class="aweso-chevron-up color-cyan" data-toggle-icon="aweso-chevron-down aweso-chevron-up"></i> </button> </div> </div><!-- /widget header --> <!-- widget content --> <div class="widget-content bg-white"> <div style='overflow:auto'> <?php //$this->widget('bootstrap.widgets.TbGridView',array( $this->widget('ext.selgridview.BootSelGridView', array('id' => 'tarea-objetivo-grid', 'type' => 'striped bordered hover advance ', 'template' => '{summary}{items}{pager}', 'dataProvider' => $model->search(), 'pagerCssClass' => 'pagination text-center', 'selectableRows' => 2, 'columns' => array('id', 'objetivo', array('name' => 'realizado', 'value' => '($data->realizado === 0) ? Yii::t(\'AweCrud.app\', \'No\') : Yii::t(\'AweCrud.app\', \'Yes\')', 'filter' => array('0' => Yii::t('AweCrud.app', 'No'), '1' => Yii::t('AweCrud.app', 'Yes'))), array('name' => 'tarea_id', 'value' => 'isset($data->tarea) ? $data->tarea : null', 'filter' => CHtml::listData(Tarea::model()->findAll(), 'id', Tarea::representingColumn())), array('class' => 'CButtonColumn', 'template' => '{view} {update} {delete}', 'deleteConfirmation' => CrugeTranslator::t('admin', 'Are you sure you want to delete this user'), 'buttons' => array('view' => array('label' => '<button class="btn btn-success"><i class="aweso-eye-open"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'View')), 'imageUrl' => false), 'update' => array('label' => '<button class="btn btn-info"><i class="aweso-pencil"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'Update')), 'imageUrl' => false), 'delete' => array('label' => '<button class="btn btn-danger"><i class="aweso-trash"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'Delete')), 'imageUrl' => false)), 'htmlOptions' => array('width' => '206px'))))); ?> </div> </div> </div> </div> </div> <!--</fieldset>-->