Example #1
0
<?php

/** @var BancoController $this */
/** @var Banco $model */
/** @var AweActiveForm $form */
$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array('type' => 'horizontal', 'id' => 'banco-form', 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => false, 'validateOnChange' => true), 'enableClientValidation' => false));
?>
<div class="widget blue">
    <div class="widget-title">
        <h4><i class="icon-plus"></i><?php 
echo Yii::t('AweCrud.app', $model->isNewRecord ? 'Create' : 'Update') . ' ' . Banco::label(1);
?>
</h4>
        <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <!--a href="javascript:;" class="icon-remove"></a-->
        </span>
    </div>
    <div class="widget-body">
        
        
            
                                        <?php 
echo $form->textFieldRow($model, 'NRO_CUENTA', array('maxlength' => 20));
?>
                                
                                        <?php 
echo $form->dropDownListRow($model, 'TIPO_CUENTA', array('AHORRO' => 'AHORRO', 'CORRIENTE' => 'CORRIENTE'));
?>
                                
                                        <?php 
Example #2
0
<?php

/** @var BancoController $this */
/** @var Banco $model */
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create'), 'icon' => 'plus', 'url' => array('create')));
?>
<div id="flashMsg"  class="flash-messages">

</div> 
<div class="widget blue">
    <div class="widget-title">
        <h4> <i class="icon-fire-extinguisher"></i> <?php 
echo Yii::t('AweCrud.app', 'Manage');
?>
 <?php 
echo Banco::label(2);
?>
 </h4>
        <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <!--a href="javascript:;" class="icon-remove"></a-->
        </span>
    </div>
    <div class="widget-body">

            <?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'banco-grid', 'type' => 'striped bordered hover advance', 'dataProvider' => $model->search(), 'columns' => array('NRO_CUENTA', array('name' => 'TIPO_CUENTA', 'filter' => array('AHORRO' => 'AHORRO', 'CORRIENTE' => 'CORRIENTE')), 'NOMBRE_BANCO', 'SALDO', 'PERSONA_ID', array('class' => 'CButtonColumn', 'template' => '{update} {delete}', 'afterDelete' => 'function(link,success,data){ 
                    if(success) {
                         $("#flashMsg").empty();
                         $("#flashMsg").css("display","");
                         $("#flashMsg").html(data).animate({opacity: 1.0}, 5500).fadeOut("slow");