Esempio n. 1
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>
Esempio n. 2
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>
Esempio n. 3
0
<?php

/** @var TblComprasController $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_compra', array('class' => 'span5'));
?>

<?php 
echo $form->dropDownListRow($model, 'id_proveedor', CHtml::listData(TblProveedores::model()->findAll(), 'id_proveedor', TblProveedores::representingColumn()), array('prompt' => Yii::t('AweApp', 'None')));
?>

<?php 
echo $form->dropDownListRow($model, 'id_usuario', CHtml::listData(TblUsuarios::model()->findAll(), 'id_usuario', TblUsuarios::representingColumn()), array('prompt' => Yii::t('AweApp', 'None')));
?>

<?php 
echo $form->textFieldRow($model, 'total_compra', array('class' => 'span5'));
?>

<?php 
echo $form->datepickerRow($model, 'fecha_compra');
// echo $form->datepickerRow($model, 'fecha_compra', array('prepend'=>'<i class="icon-calendar"></i>'));
?>

<?php 
echo $form->textAreaRow($model, 'observaciones', array('rows' => 6, 'cols' => 50, 'class' => 'span8'));
?>
Esempio n. 4
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>
Esempio n. 5
0
/** @var TblComprasController $this */
/** @var TblCompras $model */
$this->breadcrumbs = array('Tbl Comprases' => array('index'), Yii::t('AweCrud.app', 'Manage'));
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'List') . ' ' . TblCompras::label(2), 'icon' => 'list', 'url' => array('index')), array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . TblCompras::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-compras-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<fieldset>
    <legend>
        <?php 
echo Yii::t('AweCrud.app', 'Manage');
?>
 <?php 
echo TblCompras::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-compras-grid', 'type' => 'striped condensed', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id_compra', array('name' => 'id_proveedor', 'value' => 'isset($data->idProveedor) ? $data->idProveedor : null', 'filter' => CHtml::listData(TblProveedores::model()->findAll(), 'id_proveedor', TblProveedores::representingColumn())), array('name' => 'id_usuario', 'value' => 'isset($data->idUsuario) ? $data->idUsuario : null', 'filter' => CHtml::listData(TblUsuarios::model()->findAll(), 'id_usuario', TblUsuarios::representingColumn())), 'total_compra', 'fecha_compra', 'observaciones', array('class' => 'bootstrap.widgets.TbButtonColumn'))));
?>
</fieldset>