<?php /** @var TblInventarioController $this */ /** @var AweActiveForm $form */ $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get')); ?> <?php echo $form->textFieldRow($model, 'id_inventario', array('class' => 'span5')); ?> <?php echo $form->dropDownListRow($model, 'id_producto', CHtml::listData(TblProductos::model()->findAll(), 'id_producto', TblProductos::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();
<?php /** @var TblProductosController $this */ /** @var TblProductos $model */ $this->breadcrumbs = array('Tbl Productoses'); $this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . TblProductos::label(), 'icon' => 'plus', 'url' => array('create')), array('label' => Yii::t('AweCrud.app', 'Manage'), 'icon' => 'list-alt', 'url' => array('admin'))); ?> <fieldset> <legend> <?php echo Yii::t('AweCrud.app', 'List'); ?> <?php echo TblProductos::label(2); ?> </legend> <?php $this->widget('bootstrap.widgets.TbListView', array('dataProvider' => $dataProvider, 'itemView' => '_view')); ?> </fieldset>
<?php /** @var TblProductosController $this */ /** @var TblProductos $model */ $this->breadcrumbs = array('Tbl Productoses' => array('index'), $model->id_producto); $this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . TblProductos::label(), 'icon' => 'plus', 'url' => array('create')), array('label' => Yii::t('AweCrud.app', 'Update'), 'icon' => 'pencil', 'url' => array('update', 'id' => $model->id_producto)), array('label' => Yii::t('AweCrud.app', 'Delete'), 'icon' => 'trash', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id_producto), 'confirm' => Yii::t('AweCrud.app', 'Are you sure you want to delete this item?'))), array('label' => Yii::t('AweCrud.app', 'Manage'), 'icon' => 'list-alt', 'url' => array('admin'))); ?> <fieldset> <legend><?php echo Yii::t('AweCrud.app', 'View') . ' ' . TblProductos::label(); ?> <?php echo CHtml::encode($model); ?> </legend> <?php $this->widget('bootstrap.widgets.TbDetailView', array('data' => $model, 'attributes' => array('id_producto', 'nombre_producto', 'stock', 'costo_actual', 'precio', 'presentacion'))); ?> </fieldset>
<?php /** @var TblProductosController $this */ /** @var TblProductos $model */ $this->breadcrumbs = array($model->label(2) => array('index'), Yii::t('AweCrud.app', 'Create')); $this->menu = array(array('label' => Yii::t('AweCrud.app', 'Manage'), 'icon' => 'list-alt', 'url' => array('admin'))); ?> <fieldset> <legend><?php echo Yii::t('AweCrud.app', 'Create') . ' ' . TblProductos::label(); ?> </legend> <?php echo $this->renderPartial('_form', array('model' => $model)); ?> </fieldset>
/** @var TblDetalleCompraController $this */ /** @var TblDetalleCompra $model */ $this->breadcrumbs = array('Tbl Detalle Compras' => array('index'), Yii::t('AweCrud.app', 'Manage')); $this->menu = array(array('label' => Yii::t('AweCrud.app', 'List') . ' ' . TblDetalleCompra::label(2), 'icon' => 'list', 'url' => array('index')), array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . TblDetalleCompra::label(), 'icon' => 'plus', 'url' => array('create'))); Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('tbl-detalle-compra-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); ?> <fieldset> <legend> <?php echo Yii::t('AweCrud.app', 'Manage'); ?> <?php echo TblDetalleCompra::label(2); ?> </legend> <?php echo CHtml::link('<i class="icon-search"></i> ' . Yii::t('AweCrud.app', 'Advanced Search'), '#', array('class' => 'search-button btn')); ?> <div class="search-form" style="display:none"> <?php $this->renderPartial('_search', array('model' => $model)); ?> </div><!-- search-form --> <?php $this->widget('bootstrap.widgets.TbGridView', array('id' => 'tbl-detalle-compra-grid', 'type' => 'striped condensed', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id_detalle', array('name' => 'id_compra', 'value' => 'isset($data->idCompra) ? $data->idCompra : null', 'filter' => CHtml::listData(TblCompras::model()->findAll(), 'id_compra', TblCompras::representingColumn())), array('name' => 'id_producto', 'value' => 'isset($data->idProducto) ? $data->idProducto : null', 'filter' => CHtml::listData(TblProductos::model()->findAll(), 'id_producto', TblProductos::representingColumn())), 'valor_unidad', 'cantidad', 'valor_total', array('class' => 'bootstrap.widgets.TbButtonColumn')))); ?> </fieldset>
/** @var TblInventarioController $this */ /** @var TblInventario $model */ $this->breadcrumbs = array('Tbl Inventarios' => array('index'), Yii::t('AweCrud.app', 'Manage')); $this->menu = array(array('label' => Yii::t('AweCrud.app', 'List') . ' ' . TblInventario::label(2), 'icon' => 'list', 'url' => array('index')), array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . TblInventario::label(), 'icon' => 'plus', 'url' => array('create'))); Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('tbl-inventario-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n"); ?> <fieldset> <legend> <?php echo Yii::t('AweCrud.app', 'Manage'); ?> <?php echo TblInventario::label(2); ?> </legend> <?php echo CHtml::link('<i class="icon-search"></i> ' . Yii::t('AweCrud.app', 'Advanced Search'), '#', array('class' => 'search-button btn')); ?> <div class="search-form" style="display:none"> <?php $this->renderPartial('_search', array('model' => $model)); ?> </div><!-- search-form --> <?php $this->widget('bootstrap.widgets.TbGridView', array('id' => 'tbl-inventario-grid', 'type' => 'striped condensed', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id_inventario', array('name' => 'id_producto', 'value' => 'isset($data->idProducto) ? $data->idProducto : null', 'filter' => CHtml::listData(TblProductos::model()->findAll(), 'id_producto', TblProductos::representingColumn())), array('class' => 'bootstrap.widgets.TbButtonColumn')))); ?> </fieldset>