Exemplo n.º 1
0
<?php

/** @var ProductoController $this */
/** @var Producto $model */
$this->breadcrumbs = array($model->label(2) => array('index'), Yii::t('app', $model->id_producto) => array('view', 'id' => $model->id_producto), Yii::t('AweCrud.app', 'Update'));
$this->menu = array(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', 'Update') . ' ' . Producto::label();
?>
 <?php 
echo CHtml::encode($model);
?>
</legend>
    <?php 
echo $this->renderPartial('_form', array('model' => $model));
?>
</fieldset>
Exemplo n.º 2
0
<?php

$this->breadcrumbs = array(Producto::label(2), Yii::t('app', 'Index'));
$this->menu = array(array('label' => Yii::t('app', 'Create') . ' ' . Producto::label(), 'url' => array('create')), array('label' => Yii::t('app', 'Manage') . ' ' . Producto::label(2), 'url' => array('admin')));
?>

<h1><?php 
echo GxHtml::encode(Producto::label(2));
?>
</h1>

<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
Exemplo n.º 3
0
<?php

/** @var ProductoController $this */
/** @var Producto $model */
$this->breadcrumbs = array('Productos' => array('index'), $model->id_producto);
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . Producto::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') . ' ' . Producto::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>
Exemplo n.º 4
0
<?php

/** @var ProductoController $this */
/** @var Producto $model */
$this->breadcrumbs = array('Productos' => array('index'), Yii::t('AweCrud.app', 'Manage'));
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . Producto::label(), 'icon' => 'plus', 'url' => array('create')));
?>

<fieldset>
    <legend>
        <?php 
echo Yii::t('AweCrud.app', 'Manage');
?>
 <?php 
echo Producto::label(2);
?>
    </legend>



<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'producto-grid', 'type' => 'striped condensed', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id_producto', 'nombre_producto', 'stock', 'costo_actual', 'precio', 'presentacion', array('class' => 'bootstrap.widgets.TbButtonColumn'))));
?>
</fieldset>
Exemplo n.º 5
0
<?php

$this->breadcrumbs = array(
	Producto::label(2),
	Yii::t('app', 'Index'),
);

$this->menu = array(
	array('label'=>Yii::t('app', 'Create') . ' ' . Producto::label(), 'url' => array('create')),
	array('label'=>Yii::t('app', 'Manage') . ' ' . Producto::label(2), 'url' => array('admin')),
);
?>

<h1><?php echo GxHtml::encode(Producto::label(2)); ?></h1>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
));