コード例 #1
0
ファイル: update.php プロジェクト: juan-david-gomez/sistenweb
<?php

/** @var ProveedorController $this */
/** @var Proveedor $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') . ' ' . Proveedor::label();
?>
 <?php 
echo CHtml::encode($model);
?>
</legend>
    <?php 
echo $this->renderPartial('_form', array('model' => $model));
?>
</fieldset>
コード例 #2
0
ファイル: admin.php プロジェクト: juan-david-gomez/sistenweb
<?php

/** @var ProveedorController $this */
/** @var Proveedor $model */
$this->breadcrumbs = array('Proveedors' => array('index'), Yii::t('AweCrud.app', 'Manage'));
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create') . ' ' . Proveedor::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('proveedor-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<fieldset>
    <legend>
        <?php 
echo Yii::t('AweCrud.app', 'Manage');
?>
 <?php 
echo Proveedor::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' => 'proveedor-grid', 'type' => 'striped condensed', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id_proveedor', 'nombre_proveedor', 'empresa_proveedor', 'telefono', 'email', array('class' => 'bootstrap.widgets.TbButtonColumn'))));
?>