Ejemplo n.º 1
0
<?php

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

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

/** @var TblProveedoresController $this */
/** @var TblProveedores $model */
$this->breadcrumbs = array($model->label(2) => array('index'), Yii::t('app', $model->id_proveedor) => array('view', 'id' => $model->id_proveedor), 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_proveedor), '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') . ' ' . TblProveedores::label();
?>
 <?php 
echo CHtml::encode($model);
?>
</legend>
    <?php 
echo $this->renderPartial('_form', array('model' => $model));
?>
</fieldset>
Ejemplo n.º 3
0
<?php

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

<?php 
$this->widget('bootstrap.widgets.TbDetailView', array('data' => $model, 'attributes' => array('id_proveedor', 'nombre_proveedor', 'empresa_proveedor', 'telefono', array('name' => 'email', 'type' => 'email'))));
?>
</fieldset>