Example #1
0
Box::end();
Column::end();
Column::begin(['grid' => [['type' => Column::TYPE_DESKTOP, 'size' => Column::SIZE_SMALL]]]);
Box::begin(['type' => Box::TYPE_SOLID . ' ' . Box::TYPE_SUCCESS, 'header' => 'Success Solid Box', 'usebutton' => true, 'buttonoption' => ['class' => 'btn-primary btn-sm', 'notitle' => true]]);
?>
    Box class: <code>.box.box-solid.box-success</code>
    <p>
        amber, microbrewery abbey hydrometer, brewpub ale lauter tun saccharification oxidized barrel.
        berliner weisse wort chiller adjunct hydrometer alcohol aau!
        sour/acidic sour/acidic chocolate malt ipa ipa hydrometer.
    </p>
    <?php 
Box::end();
Column::end();
Column::begin(['grid' => [['type' => Column::TYPE_DESKTOP, 'size' => Column::SIZE_SMALL]]]);
Box::begin(['type' => Box::TYPE_SOLID . ' ' . Box::TYPE_WARNING, 'header' => 'Warning Solid Box', 'usebutton' => true, 'buttonoption' => ['class' => 'btn-info btn-sm', 'notitle' => true]]);
?>
    Box class: <code>.box.box-solid.box-warning</code>
    <p>
        amber, microbrewery abbey hydrometer, brewpub ale lauter tun saccharification oxidized barrel.
        berliner weisse wort chiller adjunct hydrometer alcohol aau!
        sour/acidic sour/acidic chocolate malt ipa ipa hydrometer.
    </p>
    <?php 
Box::end();
Column::end();
Row::end();
PageHeader::begin(['type' => PageHeader::TYPE_COMPONENT]);
?>
AdminLTE Tiles
<small>To create a tile we create a solid box and a <code>.bg-*</code> class ( * being the name of the color) to the box.</small>
Example #2
0
<?php

use yii\helpers\Html;
use yii\adminUi\widget\Box;
use yii\adminUi\widget\Row;
use yii\adminUi\widget\Column;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\models\MovieTheaterMapSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Movie Theater Map';
$this->params['breadcrumbs'][] = $this->title;
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => $this->title, 'headerIcon' => 'fa fa-gear', 'headerButtonGroup' => true, 'headerButton' => Html::a('Create Movie Theater Map', ['create'], ['class' => 'btn btn-success'])]);
echo $this->render('_search', ['model' => $searchModel]);
echo GridView::widget(['filterPosition' => false, 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => ['moviename', 'theatername', 'launguagename', 'cityname', 'startDate', 'endDate', 'showTime:ntext', ['class' => 'yii\\grid\\ActionColumn', 'template' => '{view} {update} {viewonline} {delete}', 'buttons' => ['viewonline' => function ($url, $model) {
    //http://timescity.com/delhi-movie/Show-Times/haider/5438
    $url = (yii::$app->params['weburl'] ? yii::$app->params['weburl'] : 'http://timescity.com/') . strtolower($model->cityname) . '-movie/' . strtolower($model->urlFilter($model->moviename)) . '/' . $model->movieId;
    return Html::tag('li', Html::a('<span class="fa fa-globe fa-lg"></span> ' . Yii::t('yii', 'View Online'), $url, ['title' => Yii::t('yii', 'View Online'), 'target' => '_blank']));
}]]]]);
Box::end();
Column::end();
Row::end();
Example #3
0
<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\widgets\ListView;
use yii\grid\GridView;
use yii\adminUi\widget\Box;
use yii\adminUi\widget\Row;
use yii\adminUi\widget\Column;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model common\models\MovieTheaterMap */
$this->title = $model->moviename . ' Movie Map';
$this->params['breadcrumbs'][] = ['label' => 'Movie Theater Map', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => $this->title, 'headerIcon' => 'fa fa-gear', 'headerButtonGroup' => true, 'headerButton' => Html::a('Update', ['update', 'id' => $model->Id], ['class' => 'btn btn-primary'])]);
?>
		
                <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['moviename', 'theatername', 'languagename', 'cityname', 'startDate', 'endDate', 'lastEndDate', 'showTime:ntext', 'nextWeekShowTime:ntext']]);
echo Html::a('Back', '/movieschedule', ['class' => 'btn  btn-primary']);
Box::end();
Column::end();
Row::end();
Example #4
0
    } else {
        return $model->action;
    }
}], ['label' => 'Type', 'value' => function ($model) {
    if ($model->type == 1) {
        return 'Granted';
    } else {
        return 'Restrict';
    }
}], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{update} {delete}', 'urlCreator' => function ($action, $model, $key, $index) {
    $params = is_array($key) ? $key : ['id' => (string) $key];
    $params[0] = 'grouppermission/' . $action;
    $params['groupId'] = $model->groupId;
    return Url::toRoute($params);
}, 'buttons' => ['update' => function ($url, $model) {
    return Html::tag('li', Html::a('<span class="fa fa-edit fa-lg"></span> ' . Yii::t('yii', 'Update'), $url, ['title' => Yii::t('yii', 'Update'), 'data-pjax' => '0']));
}, 'delete' => function ($url, $model) {
    return Html::tag('li', Html::a('<span class="fa fa-trash-o fa-lg"></span> ' . Yii::t('yii', 'Delete'), $url, ['title' => Yii::t('yii', 'Delete'), 'data-confirm' => Yii::t('yii', 'Are you sure you want to delete this item?'), 'data-method' => 'post', 'data-pjax' => '0']));
}]]]]);
Box::end();
Box::begin(['type' => Box::TYPE_INFO, 'header' => 'Permissions', 'headerIcon' => 'fa fa-shield']);
echo GridView::widget(['dataProvider' => $model->getPermissions(), 'filterPosition' => false, 'layout' => "{items}", 'columns' => [['label' => 'Module', 'value' => function ($model) {
    return $model[0];
}], ['label' => 'Controller', 'value' => function ($model) {
    return $model[1];
}], ['label' => 'Action', 'value' => function ($model) {
    return $model[2];
}]]]);
Box::end();
Column::end();
Row::end();
Example #5
0
echo Progress::widget(['orientation' => Progress::VERTICLE, 'barOptions' => ['class' => 'progress-bar-yellow'], 'percent' => 60]);
echo Progress::widget(['orientation' => Progress::VERTICLE, 'barOptions' => ['class' => 'progress-bar-red'], 'percent' => 80]);
Box::end();
Column::end();
Row::end();
PageHeader::begin();
echo 'Bootstrap Accordion & Carousel';
PageHeader::end();
Row::begin();
Column::begin(['grid' => [['type' => Column::TYPE_DESKTOP, 'size' => Column::SIZE_HALF]]]);
Box::begin(['type' => Box::TYPE_SOLID, 'header' => 'Collapsible Accordion']);
echo Collapse::widget(['items' => ['Collapsible Group Item #1' => ['content' => 'Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven\'t heard of them accusamus labore sustainable VHS.', 'contentOptions' => ['class' => 'in'], 'options' => ['class' => 'box-primary']], 'Collapsible Group Danger' => ['content' => 'Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven\'t heard of them accusamus labore sustainable VHS.', 'contentOptions' => [], 'options' => ['class' => 'box-danger']], 'Collapsible Group Success' => ['content' => 'Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven\'t heard of them accusamus labore sustainable VHS.', 'contentOptions' => [], 'options' => ['class' => 'box-success']]]]);
Box::end();
Column::end();
Column::begin(['grid' => [['type' => Column::TYPE_DESKTOP, 'size' => Column::SIZE_HALF]]]);
Box::begin(['type' => Box::TYPE_SOLID, 'header' => 'Carousel']);
echo Carousel::widget(['items' => [['content' => '<img src="http://placehold.it/900x500/39CCCC/ffffff&text=I+Love+Bootstrap"/>', 'caption' => 'First Slide'], ['content' => '<img src="http://placehold.it/900x500/3c8dbc/ffffff&text=I+Love+Bootstrap"/>', 'caption' => 'Second Slide'], ['content' => '<img src="http://placehold.it/900x500/f39c12/ffffff&text=I+Love+Bootstrap"/>', 'caption' => 'Third Slide']]]);
Box::end();
Column::end();
Row::end();
?>


                    <!-- START TYPOGRAPHY -->
                    <h2 class="page-header">Typography</h2>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="box box-solid">
                                <div class="box-header">
                                    <i class="fa fa-text-width"></i>
                                    <h3 class="box-title">Headlines</h3>
Example #6
0
<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\widgets\ListView;
use yii\grid\GridView;
use yii\adminUi\widget\Box;
use yii\adminUi\widget\Row;
use yii\adminUi\widget\Column;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model common\models\tags */
$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Tags', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => $this->title, 'headerIcon' => 'fa fa-gear', 'headerButtonGroup' => true, 'headerButton' => Html::a('Update', ['update', 'id' => $model->Id], ['class' => 'btn btn-primary']) . Html::a('Delete', ['delete', 'id' => $model->Id], ['class' => 'btn btn-danger', 'data' => ['confirm' => 'Are you sure you want to delete this item?', 'method' => 'post']])]);
echo DetailView::widget(['model' => $model, 'attributes' => ['Id', 'name', 'description', 'createdBy', 'updatedBy', 'createdOn', 'updatedOn', 'status', 'ip', 'issystem']]);
Box::end();
Column::end();
Row::end();
Example #7
0
<?php

use yii\helpers\Html;
use yii\adminUi\widget\Box;
use yii\adminUi\widget\Row;
use yii\adminUi\widget\Column;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\models\MovieLanguageSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Movie Languages';
$this->params['breadcrumbs'][] = $this->title;
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => $this->title, 'headerIcon' => 'fa fa-gear', 'headerButtonGroup' => true, 'headerButton' => Html::a('Create Movie Language', ['create'], ['class' => 'btn btn-success']) . Html::a('<i class="fa fa-trash-o fa-lg"></i>&nbsp; Trash', ['trash/index'], ['class' => 'btn btn-default'])]);
// echo $this->render('_search', ['model' => $searchModel]);
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => ['Id', 'name', ['class' => 'yii\\grid\\ActionColumn']]]);
Box::end();
Column::end();
Row::end();
Example #8
0
<?php

use yii\helpers\Html;
use yii\adminUi\widget\Box;
use yii\adminUi\widget\Row;
use yii\adminUi\widget\Column;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\models\tagssearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Deleted Tags';
$this->params['breadcrumbs'][] = $this->title;
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => $this->title, 'headerIcon' => 'fa fa-gear', 'headerButtonGroup' => true, 'headerButton' => Html::a('Back to Tags', ['create'], ['class' => 'btn btn-success fa fa-long-arrow-left'])]);
// echo $this->render('_search', ['model' => $searchModel]);
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => ['Id', 'name', 'description', 'createdBy', 'updatedBy', ['class' => 'yii\\grid\\ActionColumn', 'template' => '{restore} {delete}']]]);
Box::end();
Column::end();
Row::end();
Example #9
0
<?php

use yii\helpers\Html;
use yii\adminUi\widget\Box;
use yii\adminUi\widget\Row;
use yii\adminUi\widget\Column;
/**
 * @var yii\web\View $this
 * @var common\models\Event $model
 */
$this->title = 'Update Event: ' . ' ' . $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Events', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->Id]];
$this->params['breadcrumbs'][] = 'Update';
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => $model->name, 'headerIcon' => 'fa fa-gear']);
echo $this->render('_form', ['model' => $model, 'map' => $map, 'tag' => $tag]);
Box::end();
Column::end();
Row::end();
Example #10
0
<?php

use yii\helpers\Html;
use yii\adminUi\widget\Box;
use yii\adminUi\widget\Row;
use yii\adminUi\widget\Column;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\sammaye\AuditTrailSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Audit Trails';
$this->params['breadcrumbs'][] = $this->title;
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => $this->title, 'headerIcon' => 'fa fa-gear', 'headerButtonGroup' => true]);
// echo $this->render('_search', ['model' => $searchModel]);
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\CheckboxColumn'], 'id', 'old_value:ntext', 'new_value:ntext', 'action', 'model', ['class' => 'yii\\grid\\ActionColumn']]]);
Box::end();
Column::end();
Row::end();
Example #11
0
<?php

use yii\helpers\Html;
use yii\adminUi\widget\Box;
use yii\adminUi\widget\Row;
use yii\adminUi\widget\Column;
use yii\grid\GridView;
use yii\adminUi\widget\Alert;
/* @var $this yii\web\View */
/* @var $searchModel common\models\MovieTheaterMapSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
//$this->title = 'Movie Theater Map';
//$this->params['breadcrumbs'][] = $this->title;
Row::begin();
Column::begin();
Box::begin([]);
echo GridView::widget(['filterPosition' => false, 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => ['moviename', 'theatername', 'launguagename', 'cityname', 'startDate', 'endDate', 'showTime:ntext', ['class' => 'yii\\grid\\ActionColumn', 'template' => '{view} {update} {viewonline} {delete}', 'buttons' => ['viewonline' => function ($url, $model) {
    //http://timescity.com/delhi-movie/Show-Times/haider/5438
    $url = (yii::$app->params['weburl'] ? yii::$app->params['weburl'] : 'http://timescity.com/') . strtolower($model->cityname) . '-movie/' . strtolower($model->urlFilter($model->moviename)) . '/' . $model->movieId;
    return Html::tag('li', Html::a('<span class="fa fa-globe fa-lg"></span> ' . Yii::t('yii', 'View Online'), $url, ['title' => Yii::t('yii', 'View Online'), 'target' => '_blank']));
}]]]]);
Box::end();
Column::end();
Row::end();
Example #12
0
use yii\adminUi\widget\Row;
use yii\adminUi\widget\Column;
use yii\helpers\Url;
/**
 * @var yii\web\View $this
 * @var common\models\User $model
 */
$this->title = $model->fullname;
$this->params['breadcrumbs'][] = ['label' => 'profile', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => $this->title, 'headerIcon' => 'fa fa-user']);
echo DetailView::widget(['model' => $model, 'attributes' => ['firstname', 'lastname', 'username', 'email', 'phone', 'groupName', 'statusName']]);
Box::end();
Box::begin(['type' => Box::TYPE_INFO, 'header' => 'Additional Groups', 'headerIcon' => 'fa fa-users']);
echo ListView::widget(['dataProvider' => $model->getUsersGroup(), 'emptyText' => 'No Group Listed', 'emptyTextOptions' => ['class' => 'callout callout-danger'], 'options' => ['class' => 'list-group'], 'layout' => '{items}', 'itemOptions' => ['tag' => 'a', 'href' => '#', 'class' => 'list-group-item'], 'itemView' => function ($model, $key, $index, $widget) {
    return $model->groupName;
}]);
Box::end();
?>
<div class="center-block text-center">
    <?php 
echo Html::a('Update Profile', ['update'], ['class' => 'btn btn-primary']);
?>
    <?php 
echo Html::a('Change Password', ['changepassword'], ['class' => 'btn btn-danger']);
?>
</div>
        <?php 
Column::end();
Example #13
0
<?php

use yii\adminUi\widget\Box;
use common\models\LoginHistory;
use yii\grid\GridView;
use yii\adminUi\widget\Tabs;
?>

<div class="row">
    <div class="col-md-12">
    <?php 
Box::begin(['type' => Box::TYPE_PRIMARY, 'header' => "Recent Login", 'headerIcon' => 'fa fa-history', 'class' => 'bg-maroon', 'headerButtonGroup' => true]);
$model = new LoginHistory();
$dataProvider = $model->getDashboardData();
\yii\widgets\Pjax::begin(['timeout' => 10000]);
echo GridView::widget(['filterPosition' => false, 'dataProvider' => $dataProvider, 'filterModel' => $model, 'tableOptions' => ['class' => 'table table-bordered'], 'columns' => [['attribute' => 'user_id', 'contentOptions' => ['style' => 'width: 6%;']], ['attribute' => 'username', 'label' => 'Username', 'contentOptions' => ['style' => 'width: 15%;'], 'format' => 'raw', 'value' => function ($model) {
    return $model->user->username;
}], ['attribute' => 'name', 'label' => 'Name', 'contentOptions' => ['style' => 'width: 35%;'], 'format' => 'raw', 'value' => function ($model) {
    return $model->user->firstname . ' ' . $model->user->lastname;
}], ['attribute' => 'group', 'label' => 'Primary Group', 'contentOptions' => ['style' => 'width: 10%;'], 'format' => 'raw', 'value' => function ($model) {
    return $model->user->groupName;
}], ['attribute' => 'login_time', 'label' => 'Login Time', 'contentOptions' => ['style' => 'width: 10%;'], 'format' => 'datetime'], ['attribute' => 'ip', 'label' => 'IP', 'contentOptions' => ['style' => 'width: 10%;']]]]);
\yii\widgets\Pjax::end();
?>
    <?php 
Box::end();
?>
    </div>    
    
</div>
<?php

use yii\helpers\Html;
use yii\adminUi\widget\Box;
use yii\adminUi\widget\Row;
use yii\adminUi\widget\Column;
/**
 * @var yii\web\View $this
 * @var common\models\User $model
 */
$this->title = 'Modify Group Subscription';
$this->params['breadcrumbs'][] = ['label' => 'Users', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->fullname, 'url' => ['view', 'id' => $model->Id]];
$this->params['breadcrumbs'][] = $this->title;
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => $model->fullname, 'headerIcon' => 'fa fa-user']);
echo $this->render('_form_updategroup', ['model' => $model]);
Box::end();
Column::end();
Row::end();
Example #15
0
</p>
    <?php 
    Alert::end();
}
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => $this->title, 'headerIcon' => 'fa fa-gear', 'headerButtonGroup' => true, 'headerButton' => Html::a('Update', ['update', 'id' => $model->Id], ['class' => 'btn btn-primary'])]);
//echo "<pre>";
//print_r($model);
echo DetailView::widget(['model' => $model, 'attributes' => ['Id', 'chainname', 'cityname', 'name', 'website', 'pricefortwo', 'cuisinenames', 'specilities', 'whichTypename', 'typesnames', 'facebookUrl:url', 'createdByUser', 'updatedByUser', 'createdOn:date', 'updatedOn:date', 'ip']]);
Box::end();
Column::end();
Row::end();
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => '', 'headerIcon' => 'fa fa-gear', 'headerButtonGroup' => true, 'headerButton' => Html::a('Allocate Chain', ['allocatechain', 'id' => $model->Id], ['class' => 'btn btn-success'])]);
//echo $this->render('_restaurant_search', ['model' => $searchModel]);
/*
        echo GridView::widget([
   'dataProvider' => $model->getRestaurants(),
   'filterPosition'    => false,
   'layout' => "{items}",
   'columns' => [
       [                    // the owner name of the model
           'label' => 'City',
           'value' => $model->cityname,
       ],

   ],
        ]);
        
Example #16
0
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Theaters';
$this->params['breadcrumbs'][] = $this->title;
Row::begin();
Column::begin();
if ($flash = Yii::$app->session->getFlash("theater_notification")) {
    Alert::begin(['options' => ['class' => 'alert-info alert-dismissable'], 'icon' => 'fa fa-info', 'closeButton' => []]);
    ?>
        <p><?php 
    echo $flash;
    ?>
</p>
        <?php 
    Alert::end();
}
Box::begin(['type' => Box::TYPE_INFO, 'header' => $this->title, 'headerIcon' => 'fa fa-gear', 'headerButtonGroup' => true, 'headerButton' => (\Yii::$app->user->can(\Yii::$app->controller->module->id . '/' . \Yii::$app->controller->id . '/create') ? Html::a('Create Theater', ['create'], ['class' => 'btn btn-success']) : '') . (\Yii::$app->user->can(\Yii::$app->controller->module->id . '/trash/index') ? Html::a('<i class="fa fa-trash-o fa-lg"></i>&nbsp; Trash', ['trash/index'], ['class' => 'btn btn-default']) : '')]);
echo $this->render('_search', ['model' => $searchModel]);
echo GridView::widget(['filterPosition' => false, 'dataProvider' => $state->listingstat, 'filterModel' => false, 'layout' => "{items}"]);
echo GridView::widget(['filterPosition' => false, 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-bordered'], 'rowOptions' => function ($model, $key, $index, $grid) {
    $class = '';
    switch ($model->state) {
        case 0:
            $class = 'deleted';
            break;
        case 1:
            $class = 'published';
            break;
        case 2:
            $class = 'publishready';
            break;
        case 3:
Example #17
0
<?php

use yii\helpers\Html;
use yii\adminUi\widget\Box;
use yii\adminUi\widget\Row;
use yii\adminUi\widget\Column;
/* @var $this yii\web\View */
/* @var $model common\models\Venue */
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO]);
echo $this->render('_reason', ['model' => $model, 'type' => 'statusupdate']);
Box::end();
Column::end();
Row::end();
    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();
Example #19
0
<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\widgets\ListView;
use yii\grid\GridView;
use yii\adminUi\widget\Box;
use yii\adminUi\widget\Row;
use yii\adminUi\widget\Column;
use yii\helpers\Url;
use yii\adminUi\widget\WorkflowButtonsView;
use yii\data\ArrayDataProvider;
/* @var $this yii\web\View */
/* @var $model common\models\Theatre */
Row::begin();
Column::begin();
Box::begin(['type' => Box::TYPE_INFO, 'header' => 'Movie Scheduled', 'headerIcon' => 'fa fa-gear']);
echo GridView::widget(['filterPosition' => false, 'dataProvider' => new ArrayDataProvider(['allModels' => $model->schedule]), 'filterModel' => new \common\models\TheaterSchedule(), 'columns' => ['Id', 'movie', 'languagename', 'startDate', 'endDate', 'lastEndDate', 'showTime', 'nextWeekShowTime', ['class' => 'common\\component\\SchedularAction', 'template' => '{view} {update}']]]);
Box::end();
Column::end();
Row::end();