Beispiel #1
0
$page->beginContent('show-actions');
?>
        <?php 
echo $page->renderLayoutSwitcher();
?>
        <?php 
echo $page->renderSorter(['attributes' => ['type', 'brand', 'model']]);
?>
        <?php 
echo $page->renderPerPage();
?>
    <?php 
$page->endContent();
?>

    <?php 
$page->beginContent('table');
?>
        <?php 
$page->beginBulkForm();
?>
        <?php 
echo ModelGridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $model, 'boxed' => false, 'columns' => ['checkbox', 'type', 'brand', 'model', 'descr', 'partno', 'dtg', 'sdg', 'm3', 'last_prices']]);
?>
        <?php 
$page->endBulkForm();
?>
    <?php 
$page->endContent();
$page->end();
Pjax::end();
Beispiel #2
0
?>
</span>
        </p>
        <div class="profile-usermenu">
            <?php 
echo ModelDetailMenu::create(['model' => $model])->render(DetailMenu::class);
?>
        </div>
        <?php 
Box::end();
?>
    </div>

    <div class="col-md-9">
        <div class="row">
            <div class="col-md-6">
                <?php 
$box = Box::begin(['renderBody' => false]);
$box->beginHeader();
echo $box->renderTitle(Yii::t('hipanel', 'Information'));
$box->endHeader();
$box->beginBody();
echo ModelGridView::detailView(['boxed' => false, 'model' => $model, 'columns' => ['type', 'brand', 'model', 'partno', 'descr', 'last_prices']]);
$box->endBody();
$box->end();
?>
            </div>
        </div>
    </div>
</div>