示例#1
0
use hipanel\modules\dns\grid\ZoneGridView;
use hipanel\widgets\IndexPage;
use hipanel\widgets\Pjax;
use yii\helpers\Html;
use yii\helpers\Url;
$this->title = Yii::t('hipanel:dns', 'DNS zones');
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? Yii::t('hipanel', 'filtered list') : Yii::t('hipanel', 'full list');
$this->params['breadcrumbs'][] = $this->title;
?>

<?php 
Pjax::begin(array_merge(Yii::$app->params['pjax'], ['enablePushState' => true]));
?>
    <?php 
$page = IndexPage::begin(compact('model', 'dataProvider'));
?>

        <?php 
echo $page->setSearchFormData(compact([]));
?>

        <?php 
$page->beginContent('main-actions');
?>
        <?php 
$page->endContent();
?>

        <?php 
$page->beginContent('show-actions');
示例#2
0
                <?php 
echo PartGridView::detailView(['boxed' => false, 'model' => $model, 'columns' => ['model_type_label', 'model_brand_label', 'partno', 'model', ['attribute' => 'serial'], 'last_move', 'move_type_label', 'move_time', 'order_data', 'dc_ticket', 'price', 'place']]);
?>
                <?php 
$box->endBody();
?>
                <?php 
$box->end();
?>

            </div>
        </div>
    </div>
    <div class="col-lg-9">
        <?php 
$page = IndexPage::begin(['model' => $model, 'layout' => 'noSearch']);
?>
        <?php 
$page->beginContent('show-actions');
?>
        <h4 class="box-title" style="display: inline-block;"><?php 
echo Yii::t('hipanel:stock', 'Move history');
?>
</h4>
        <?php 
$page->endContent();
?>
        <?php 
$page->beginContent('bulk-actions');
?>
        <?php