Beispiel #1
0
echo $form->textFieldRow($model, 'codigo_postal', array('maxlength' => 16));
?>

<?php 
echo $form->textFieldRow($model, 'calle_1', array('maxlength' => 128));
?>

<?php 
echo $form->textFieldRow($model, 'calle_2', array('maxlength' => 128));
?>

<?php 
echo $form->textAreaRow($model, 'referencia', array('rows' => 3, 'cols' => 50));
?>

<?php 
echo $form->dropDownListRow($model, 'sector_id', array('' => ' -- Seleccione -- ') + CHtml::listData(Sector::model()->findAll(), 'id', Sector::representingColumn()), array('prompt' => Yii::t('AweApp', 'None')));
?>

<?php 
echo $form->dropDownListRow($model, 'ciudad_id', array('' => ' -- Seleccione -- ') + CHtml::listData(Ciudad::model()->findAll(), 'id', Ciudad::representingColumn()), array('prompt' => Yii::t('AweApp', 'None')));
?>

<div class="form-actions">
    <?php 
$this->widget('bootstrap.widgets.TbButton', array('type' => 'primary', 'label' => Yii::t('AweCrud.app', 'Search')));
?>
</div>

<?php 
$this->endWidget();
Beispiel #2
0
            <!-- widget header -->
            <div class="widget-header bg-cyan">
                <!-- widget title -->
                <h4 class="widget-title"><i class="aweso-map-marker"></i> <?php 
echo Yii::t('AweCrud.app', 'Manage');
?>
 <?php 
echo Sector::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' => 'sector-grid', 'type' => 'striped bordered hover advance ', 'template' => '{summary}{items}{pager}', 'dataProvider' => $model->search(), 'pagerCssClass' => 'pagination text-center', 'selectableRows' => 2, 'columns' => array('nombre', array('name' => 'ciudad_id', 'value' => 'isset($data->ciudad) ? $data->ciudad : null', 'filter' => CHtml::listData(Ciudad::model()->findAll(), 'id', Ciudad::representingColumn())), array('class' => 'CButtonColumn', 'template' => '{view} {update}', 'deleteConfirmation' => CrugeTranslator::t('admin', 'Are you sure you want to delete this user'), 'buttons' => array('view' => array('label' => '<button class="btn bg-green"><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)), 'htmlOptions' => array('width' => '100px')))));
?>
                </div>
            </div>
        </div>
    </div>
</div>
<!--</fieldset>-->