Пример #1
0
    echo $flash;
    ?>
</p>
    <?php 
    Alert::end();
}
if ($flash = Yii::$app->session->getFlash("restaurant_chian_notification_error")) {
    Alert::begin(['options' => ['class' => 'alert-danger alert-dismissable'], 'icon' => 'fa fa-info', 'closeButton' => []]);
    ?>
    <p><?php 
    echo $flash;
    ?>
</p>
    <?php 
    Alert::end();
}
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => $this->title, 'headerIcon' => 'fa fa-gear']);
echo $this->render('_restaurant_search', ['model' => $searchModel, 'restaurantDetails' => $restaurantDetails]);
$queryArray = yii::$app->getRequest()->getQueryParams();
if ($queryArray['RestaurantSearch']) {
    $form = ActiveForm::begin(['action' => ['tag'], 'method' => 'post']);
    echo Html::submitButton('Allocate', ['class' => 'btn btn-success']);
    echo GridView::widget(['filterPosition' => false, 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-bordered'], 'columns' => ['Id', 'name', 1 ? ['class' => 'yii\\grid\\CheckboxColumn', 'multiple' => false] : []]]);
    echo Html::input('hidden', 'chainId', $restaurantDetails->Id);
    ActiveForm::end();
}
Box::end();
Column::end();
Row::end();