Example #1
0
<?php

/** @var TblDetalleCompraController $this */
/** @var TblDetalleCompra $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') . ' ' . TblDetalleCompra::label();
?>
</legend>
    <?php 
echo $this->renderPartial('_form', array('model' => $model));
?>
</fieldset>
Example #2
0
<?php

/** @var TblDetalleCompraController $this */
/** @var TblDetalleCompra $model */
$this->breadcrumbs = array('Tbl Detalle Compras' => array('index'), $model->id_detalle);
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . TblDetalleCompra::label(), 'icon' => 'plus', 'url' => array('create')), array('label' => Yii::t('AweCrud.app', 'Update'), 'icon' => 'pencil', 'url' => array('update', 'id' => $model->id_detalle)), array('label' => Yii::t('AweCrud.app', 'Delete'), 'icon' => 'trash', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id_detalle), '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') . ' ' . TblDetalleCompra::label();
?>
 <?php 
echo CHtml::encode($model);
?>
</legend>

<?php 
$this->widget('bootstrap.widgets.TbDetailView', array('data' => $model, 'attributes' => array('id_detalle', array('name' => 'id_compra', 'value' => $model->idCompra !== null ? CHtml::link($model->idCompra, array('/tblCompras/view', 'id_compra' => $model->idCompra->id_compra)) . ' ' : null, 'type' => 'html'), array('name' => 'id_producto', 'value' => $model->idProducto !== null ? CHtml::link($model->idProducto, array('/tblProductos/view', 'id_producto' => $model->idProducto->id_producto)) . ' ' : null, 'type' => 'html'), 'valor_unidad', 'cantidad', 'valor_total')));
?>
</fieldset>
Example #3
0
<?php

/** @var TblDetalleCompraController $this */
/** @var TblDetalleCompra $model */
$this->breadcrumbs = array('Tbl Detalle Compras');
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . TblDetalleCompra::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 TblDetalleCompra::label(2);
?>
    </legend>

<?php 
$this->widget('bootstrap.widgets.TbListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
?>
</fieldset>