* @var common\models\EventSearch $searchModel */ $this->title = 'Allocate Chain'; $this->params['breadcrumbs'][] = $this->title; if ($flash = Yii::$app->session->getFlash("restaurant_chian_notification")) { Alert::begin(['options' => ['class' => 'alert-info alert-dismissable'], 'icon' => 'fa fa-info', 'closeButton' => []]); ?> <p><?php 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']);
PageHeader::begin(); echo 'Alerts and Callouts'; PageHeader::end(); Row::begin(); Column::begin(['grid' => [['type' => Column::TYPE_DESKTOP, 'size' => Column::SIZE_HALF]]]); Box::begin(['type' => Box::TYPE_DANGER, 'header' => 'Alerts', 'headerIcon' => 'fa fa-warning']); Alert::begin(['options' => ['class' => 'alert-danger alert-dismissable'], 'icon' => 'fa fa-ban', 'closeButton' => []]); echo '<b>Alert!</b> Danger alert preview. This alert is dismissable. A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.'; Alert::end(); Alert::begin(['options' => ['class' => 'alert-info alert-dismissable'], 'icon' => 'fa fa-info', 'closeButton' => []]); echo '<b>Alert!</b> Info alert preview. This alert is dismissable.'; Alert::end(); Alert::begin(['options' => ['class' => 'alert-warning alert-dismissable'], 'icon' => 'fa fa-warning', 'closeButton' => []]); echo '<b>Alert!</b> Warning alert preview. This alert is dismissable.'; Alert::end(); Alert::begin(['options' => ['class' => 'alert-success alert-dismissable'], 'icon' => 'fa fa-check', 'closeButton' => []]); echo '<b>Alert!</b> Success alert preview. This alert is dismissable.'; Alert::end(); Box::end(); Column::end(); Column::begin(['grid' => [['type' => Column::TYPE_DESKTOP, 'size' => Column::SIZE_HALF]]]); Box::begin(['type' => Box::TYPE_INFO, 'header' => 'Callouts', 'headerIcon' => 'fa fa-bullhorn']); Callout::begin(['options' => ['class' => 'callout-danger'], 'header' => 'I am a danger callout!']); echo '<p>There is a problem that we need to fix. A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.</p>'; Callout::end(); Callout::begin(['options' => ['class' => 'callout-info'], 'header' => 'I am an info callout!']); echo '<p>Follow the steps to continue to payment.</p>'; Callout::end(); Callout::begin(['options' => ['class' => 'callout-warning'], 'header' => 'I am a warning callout!']); echo '<p>This is a yellow callout.</p>'; Callout::end();