<div class="panel panel-default"> <!-- /.panel-heading --> <div class="panel-body"> <?= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'name', 'mobile', [ 'header' => 'User Role', 'value' => 'user_role', 'filter' => Html::activeDropDownList($searchModel,'user_role',DatabaseHelper::UserRole(),['class' => 'form-control','prompt' => '-------']), ], [ 'class' => 'auction\widgets\grid\DatePickerColumn', 'dateColumn' => 'created_at' ], ['class' => 'auction\widgets\grid\StatusColumn'], [ 'class' => 'auction\widgets\grid\ActionColumn', 'template' => '{view}{update}' ], ], ]); ?> </div> <!-- /.panel-body --> </div>
<!-- /.panel-heading --> <div class="panel-body"> <?= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'name', [ 'class' => 'auction\widgets\grid\DatePickerColumn', 'dateColumn' => 'created_at' ], [ 'class' => 'yii\grid\ActionColumn', 'template' => '{update}', ], [ 'format' => 'raw', 'value' => function($model){ return Html::a('<i class="fa fa-download"></i>',\yii\helpers\Url::to(['download-csv','id' => $model->primaryKey]),[ 'class' => 'btn btn-default download-csv' , 'id' => $model->primaryKey, 'data-pjax' => '0' ]); } ] ], ]); ?> </div>
<div class="panel-heading"> <button class="btn btn-info" type="button" id="create-modal">+ Add More Brand</button> </div> <!-- /.panel-heading --> <div class="panel-body"> <?= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'name', 'description:ntext', ['class' => 'auction\widgets\grid\ImageColumn',], [ 'class' => 'auction\widgets\grid\DatePickerColumn', 'dateColumn' => 'create_date' ], ['class' => 'auction\widgets\grid\StatusColumn'], [ 'class' => 'auction\components\helpers\ActionColumn', 'template' => '{view}{update}' ], ], ]); ?> </div> <!-- /.panel-body --> </div> <!-- /.panel -->
<div class="panel-heading"> <button class="btn btn-info" type="button" id="create-modal">+ Add More Products</button> </div> <!-- /.panel-heading --> <div class="panel-body"> <?= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\CheckboxColumn'], 'name', [ 'class' => 'auction\widgets\grid\ImageColumn', 'path' => 'products' ], 'brand0.name', 'category0.name', 'prize', 'condition', [ 'class' => 'auction\components\helpers\ActionColumn', 'template' => '{view}{update}' ], ], ]); ?> </div> <?= Html::button('Delete Selected',['class' => 'btn btn-info', 'onclick' => new JsExpression(' var id = $("#dataTables-example").yiiGridView("getSelectedRows"); alert(id);
<div class="panel panel-default"> <div class="panel-heading"> <button class="btn btn-info" type="button" id="create-modal">+ Add More Users</button> </div> <!-- /.panel-heading --> <div class="panel-body"> <?= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'name', 'email:email', [ 'class' => 'auction\widgets\grid\DatePickerColumn', 'dateColumn' => 'created_at' ], ['class' => 'auction\widgets\grid\StatusColumn'], [ 'class' => 'auction\widgets\grid\ActionColumn', 'template' => '{view}{update}' ], ], ]); ?> </div> </div> </div> </div> </div>
<div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <!-- /.panel-heading --> <div class="panel-body"> <?= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'name', 'amount', 'company0.name', ['class' => 'auction\widgets\grid\DatePickerColumn',], [ 'class' => 'auction\widgets\grid\StatusColumn', 'statusColumn' => 'status' ], [ 'class' => 'auction\widgets\grid\ActionColumn', 'template' => '{view}{update}' ], ], ]); ?> </div> <!-- /.panel-body --> </div> <!-- /.panel --> </div>
</div> </div> <!-- /.panel-heading --> <div class="panel-body"> <div class="panel-heading"> <button class="btn btn-green" type="button" id="create-modal">+ Add More Lots</button> </div> <?= GridView::widget([ 'dataProvider' => $model->getLots($model->id), 'modalSize' => \yii\bootstrap\Modal::SIZE_SMALL, 'createUrl' => Url::to(['company/lots/create' ,'auction' => $model->id]), 'updateUrl' => Url::to(['company/lots/update']), 'isShowForm' => false, 'columns' => [ 'name', 'condition', 'lot_size', 'lotPreferences.category0.name', 'lotPreferences.brand0.name', [ 'class' => 'auction\widgets\grid\ActionColumn', 'template' => '{delete}{update}' ] ] ])?> </div> <!-- /.panel-body --> </div> <!-- /.panel .chat-panel --> </div> <!-- /.col-lg-8 --> <div class="col-lg-4">
<div class="panel-body"> <?= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\CheckboxColumn'], [ 'value' => 'name', 'filter' => Html::activeTextInput($searchModel,'name',['class' => 'form-control']) ], [ 'class' => 'auction\widgets\grid\ImageColumn', 'path' => 'products' ], [ 'class' => 'auction\widgets\grid\DatabaseColumn', 'modelClass' => 'auction\models\Categories', 'relationName' => 'category0', 'filterAttribute' => 'category' ], [ 'class' => 'auction\widgets\grid\DatabaseColumn', 'modelClass' => 'auction\models\Brands', 'relationName' => 'brand0', 'filterAttribute' => 'brand' ], 'prize', 'condition', ], ]); ?>
use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $searchModel auction\models\forms\SearchLot */ /* @var $dataProvider yii\data\ActiveDataProvider */ ?> <div class="lots-index"> <?= GridView::widget([ 'dataProvider' => $dataProvider, 'isShowForm' => false, 'pjaxOptions'=> ['id' => 'lots-pjax-gridview','timeout' => false, 'enablePushState' => false,'options' => ['class' => 'dataTable_wrapper']], 'columns' => [ ['class' => 'auction\widgets\grid\RadiobuttonColumn'], 'name', 'auction0.name', 'lot_size', ], 'options' => [ 'id' => 'lot-table-grid' ] ]); ?> <?= Html::button('Submit',['id' => 'save-lot-id', 'class' => 'btn btn-primary'])?> <?= Html::a('<i class="fa fa-github"></i>Create a New Lot','#',[ 'id' => 'create-lot-modal', 'class' => 'btn btn-block btn-social btn-github' , ])?> </div>