</div> <div class="col-sm-6 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'eav-attribute-type-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'eav-attribute-type-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'eav-attribute-type-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'eav-attribute-type-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['attribute' => 'id', 'options' => ['style' => 'width:20px']], ['class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'attribute' => 'name', 'controller' => '/eav/attribute-type', 'buttonsTemplate' => '{update} {delete}', 'title' => function (EavAttributeType $model) { return Html::a($model->name, ['update', 'id' => $model->id], ['data-pjax' => 0]); }], ['attribute' => 'store_type', 'value' => function (EavAttributeType $model) { $types = EavAttributeType::getStoreTypes(); return isset($types[$model->store_type]) ? $types[$model->store_type] : Yii::t('yii', '(not set)'); }, 'filter' => ArrayHelper::merge(['' => Yii::t('yee', 'Not Selected')], EavAttributeType::getStoreTypes())]]]); ?> <?php Pjax::end(); ?> </div> </div> </div>
<div class="col-sm-12 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'permission-groups-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'permission-groups-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'permission-groups-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'permission-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['attribute' => 'name', 'class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/user/permission-groups', 'title' => function ($model) { if (User::hasPermission('manageRolesAndPermissions')) { return Html::a($model->name, ['update', 'id' => $model->code], ['data-pjax' => 0]); } else { return $model->name; } }, 'buttonsTemplate' => '{update} {delete}'], 'code']]); ?> <?php Pjax::end(); ?> </div> </div> </div>
<?php echo GridPageSize::widget(['pjaxId' => 'comment-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'comment-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'comment-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'comment-grid', 'actions' => [Url::to(['bulk-activate']) => Comments::t('comments', 'Approve'), Url::to(['bulk-deactivate']) => Comments::t('comments', 'Unapprove'), Url::to(['bulk-spam']) => Comments::t('comments', 'Mark as Spam'), Url::to(['bulk-trash']) => Comments::t('comments', 'Move to Trash'), Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/comment/default', 'attribute' => 'content', 'title' => function (Comment $model) { return Html::a(mb_substr($model->content, 0, 32) . '...', ['/comment/default/update', 'id' => $model->id], ['data-pjax' => 0]); }, 'buttonsTemplate' => '{update} {delete}'], ['label' => Yii::t('yee', 'User'), 'value' => function (Comment $model) { return $model->getAuthor(); }, 'options' => ['style' => 'width:150px']], ['attribute' => 'model', 'value' => function (Comment $model) { return $model->model . ($model->model_id ? ' [' . $model->model_id . ']' : ''); }, 'options' => ['style' => 'width:120px']], ['class' => 'yeesoft\\grid\\columns\\StatusColumn', 'attribute' => 'status', 'optionsArray' => Comment::getStatusOptionsList(), 'options' => ['style' => 'width:60px']], ['class' => 'yeesoft\\grid\\columns\\DateFilterColumn', 'attribute' => 'created_at', 'value' => function (Comment $model) { return '<span style="font-size:85%;" class="label label-' . (time() >= $model->created_at ? 'primary' : 'default') . '">' . $model->createdDate . ' ' . $model->createdTime . '</span>'; }, 'format' => 'raw', 'options' => ['style' => 'width:150px']], ['attribute' => 'user_ip', 'options' => ['style' => 'width:100px']]]]); ?> <?php Pjax::end(); ?> </div> </div> </div>
</div> <div class="col-sm-6 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'trip-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'trip-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'trip-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'trip-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['attribute' => 'vehicle_model', 'class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/trip/default', 'title' => function (Trip $model) { $vehicle = $model->getVehicles()[$model->vehicle] . ' > ' . Html::encode($model->vehicle_model); return Html::a($vehicle, ['update', 'id' => $model->id], ['data-pjax' => 0]); }, 'buttonsTemplate' => '{update} {delete}', 'options' => ['style' => 'width:260px']], 'city_from', 'city_to', ['attribute' => 'created_by', 'filter' => User::getUsersList(), 'value' => function (Trip $model) { return Html::a(Html::encode($model->author->username), ['/user/default/update', 'id' => $model->created_by], ['data-pjax' => 0]); }, 'format' => 'raw', 'visible' => User::hasPermission('viewUsers')], ['class' => 'yeesoft\\grid\\columns\\StatusColumn', 'attribute' => 'type', 'optionsArray' => Trip::getTypeOptionsList(), 'options' => ['style' => 'width:60px']], ['class' => 'yeesoft\\grid\\columns\\StatusColumn', 'attribute' => 'status', 'optionsArray' => Trip::getStatusOptionsList(), 'options' => ['style' => 'width:60px']]]]); ?> <?php Pjax::end(); ?> </div> </div> </div>
<div class="panel-body"> <div class="row"> <div class="col-sm-12 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'page-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'block-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'block-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'block-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yii', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['attribute' => 'slug', 'class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/block/default', 'title' => function (Block $model) { return Html::a($model->slug, ['/block/default/update', 'id' => $model->id], ['data-pjax' => 0]); }, 'buttonsTemplate' => '{update} {delete}'], ['attribute' => 'created_by', 'filter' => User::getUsersList(), 'value' => function (Block $model) { return Html::a($model->author->username, ['/user/default/update', 'id' => $model->created_by], ['data-pjax' => 0]); }, 'format' => 'raw', 'visible' => User::hasPermission('viewUsers'), 'options' => ['style' => 'width:180px']]]]); ?> <?php Pjax::end(); ?> </div> </div> </div>
<div class="panel panel-default"> <div class="panel-body"> <div class="row"> <div class="col-sm-12 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'album-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'album-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'album-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'album-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/media/album', 'title' => function (Album $model) { return Html::a($model->title, ['/media/album/update', 'id' => $model->id], ['data-pjax' => 0]); }, 'buttonsTemplate' => '{update} {delete}'], 'description:ntext', ['attribute' => 'category_id', 'filter' => Category::getCategories(true), 'value' => function (Album $model) { return $model->category instanceof Category ? $model->category->title : Yii::t('yii', '(not set)'); }, 'format' => 'raw'], ['class' => 'yeesoft\\grid\\columns\\StatusColumn', 'attribute' => 'visible']]]); ?> <?php Pjax::end(); ?> </div> </div> </div>
<div class="panel panel-default"> <div class="panel-body"> <div class="row"> <div class="col-sm-12 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'page-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'link-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'link-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'link-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yii', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['attribute' => 'slug', 'class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/link/default', 'title' => function (Link $model) { return Html::a($model->slug, ['/link/default/update', 'id' => $model->id], ['data-pjax' => 0]); }, 'buttonsTemplate' => '{update} {delete}'], 'url', 'status_code']]); ?> <?php Pjax::end(); ?> </div> </div> </div>
?> </div> </div> <div class="panel panel-default"> <div class="panel-body"> <div class="row"> <div class="col-sm-12 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'media-category-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'media-category-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'media-category-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'media-category-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/media/category', 'title' => function (Category $model) { return Html::a($model->title, ['/media/category/update', 'id' => $model->id], ['data-pjax' => 0]); }, 'buttonsTemplate' => '{update} {delete}'], 'description:ntext', ['class' => 'yeesoft\\grid\\columns\\StatusColumn', 'attribute' => 'visible']]]); ?> <?php Pjax::end(); ?> </div> </div> </div>
<div class="row"> <div class="col-sm-12 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'menu-link-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'menu-link-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'menu-link-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'menu-link-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['attribute' => 'image', 'value' => function (MenuLink $model) { return FA::icon($model->image)->fixedWidth(); }, 'format' => 'raw', 'contentOptions' => ['style' => 'width:20px; text-align:center;']], ['class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/menu/link', 'attribute' => 'id', 'title' => function (MenuLink $model) { return Html::a($model->label, ['/menu/link/update', 'id' => $model->id], ['data-pjax' => 0]); }, 'format' => 'raw', 'buttonsTemplate' => '{update} {delete}', 'options' => ['style' => 'width:220px']], ['attribute' => 'menu_id', 'filter' => ArrayHelper::merge(['' => Yii::t('yee', 'Not Selected')], Menu::getMenus()), 'value' => function (MenuLink $model) { return $model->menu instanceof Menu ? $model->menu->title : Yii::t('yii', '(not set)'); }, 'format' => 'raw'], 'link', 'parent_id', 'order']]); ?> <?php Pjax::end(); ?> </div> </div> </div>
'searchModel' => $searchModel, ])*/ ?> </div> <div class="col-sm-6 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'eav-entity-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'eav-entity-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'eav-entity-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'eav-entity-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['attribute' => 'id', 'options' => ['style' => 'width:20px']], ['class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'attribute' => 'entity_name', 'controller' => '/eav/entity-model', 'buttonsTemplate' => '{update} {delete}', 'title' => function (EavEntityModel $model) { return Html::a($model->entity_name, ['update', 'id' => $model->id], ['data-pjax' => 0]); }], 'entity_model']]); ?> <?php Pjax::end(); ?> </div> </div> </div>
<div class="col-sm-12 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'permission-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'permission-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'permission-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'permission-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['attribute' => 'description', 'class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/user/permission', 'title' => function ($model) { return Html::a($model->description, ['view', 'id' => $model->name], $model->name == Yii::$app->yee->commonPermissionName ? ['data-pjax' => 0, 'class' => 'label label-primary'] : ['data-pjax' => 0]); }, 'buttons' => ['view' => function ($url, $model, $key) { $options = array_merge(['title' => Yii::t('yee', 'Settings'), 'aria-label' => Yii::t('yee', 'Settings'), 'data-pjax' => '0']); return Html::a(Yii::t('yee', 'Settings'), $url, $options); }]], ['attribute' => 'name', 'options' => ['style' => 'width:150px']], ['attribute' => 'group_code', 'filter' => ArrayHelper::map(AuthItemGroup::find()->asArray()->all(), 'code', 'name'), 'value' => function (Permission $model) { return $model->group_code ? $model->group->name : ''; }, 'options' => ['style' => 'width:150px']]]]); ?> <?php Pjax::end(); ?> </div> </div> </div>
<?php echo Alert::widget(['options' => ['class' => 'alert-info menu-link-alert'], 'body' => Yii::t('yee/menu', 'The changes have been saved.')]); ?> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="panel panel-default"> <div class="panel-body"> <?php echo GridView::widget(['id' => 'menu-grid', 'dataProvider' => $dataProvider, 'layout' => '{items}', 'columns' => [['class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/menu/default', 'buttonsTemplate' => '{update} {delete}', 'title' => function (Menu $model) { if (User::hasPermission('viewMenuLinks')) { return Html::a($model->title, ['/menu/default/index', 'SearchMenuLink[menu_id]' => $model->id], ['data-pjax' => 0]); } else { return Html::a($model->title, ['/menu/default/view', 'id' => $model->id], ['data-pjax' => 0]); } }]]]); ?> </div> </div> </div> <div class="col-sm-8"> <div class="panel panel-default"> <div class="panel-body"> <div class="sortable-container menu-itemes"> <?php echo $this->render('links', ['searchLinkModel' => $searchLinkModel, 'searchParams' => ['parent_id' => '']]); ?>
?> </div> </div> <?php Pjax::begin(['id' => 'user-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'user-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'user-grid'], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['attribute' => 'username', 'controller' => '/user/default', 'class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'title' => function (User $model) { if (User::hasPermission('editUsers')) { return Html::a($model->username, ['/user/default/update', 'id' => $model->id], ['data-pjax' => 0]); } else { return $model->username; } }, 'buttonsTemplate' => '{update} {delete} {permissions} {password}', 'buttons' => ['permissions' => function ($url, $model, $key) { return Html::a(Yii::t('yee/user', 'Permissions'), Url::to(['user-permission/set', 'id' => $model->id]), ['title' => Yii::t('yee/user', 'Permissions'), 'data-pjax' => '0']); }, 'password' => function ($url, $model, $key) { return Html::a(Yii::t('yee/user', 'Password'), Url::to(['default/change-password', 'id' => $model->id]), ['title' => Yii::t('yee/user', 'Password'), 'data-pjax' => '0']); }], 'options' => ['style' => 'width:300px']], ['attribute' => 'email', 'format' => 'raw', 'visible' => User::hasPermission('viewUserEmail')], ['attribute' => 'gridRoleSearch', 'filter' => ArrayHelper::map(Role::getAvailableRoles(Yii::$app->user->isSuperAdmin), 'name', 'description'), 'value' => function (User $model) { return implode(', ', ArrayHelper::map($model->roles, 'name', 'description')); }, 'format' => 'raw', 'visible' => User::hasPermission('viewUserRoles')], ['class' => 'yeesoft\\grid\\columns\\StatusColumn', 'attribute' => 'superadmin', 'visible' => Yii::$app->user->isSuperadmin, 'options' => ['style' => 'width:60px']], ['class' => 'yeesoft\\grid\\columns\\StatusColumn', 'attribute' => 'status', 'optionsArray' => [[User::STATUS_ACTIVE, Yii::t('yee', 'Active'), 'primary'], [User::STATUS_INACTIVE, Yii::t('yee', 'Inactive'), 'info'], [User::STATUS_BANNED, Yii::t('yee', 'Banned'), 'default']], 'options' => ['style' => 'width:60px']]]]); ?> <?php Pjax::end(); ?> </div> </div> </div>
<div class="col-sm-6 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'post-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'post-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'post-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'post-grid', 'actions' => [Url::to(['bulk-activate']) => Yii::t('yee', 'Publish'), Url::to(['bulk-deactivate']) => Yii::t('yee', 'Unpublish'), Url::to(['bulk-delete']) => Yii::t('yii', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/post/default', 'title' => function (Post $model) { return Html::a($model->title, ['/post/default/view', 'id' => $model->id], ['data-pjax' => 0]); }], ['attribute' => 'created_by', 'filter' => yeesoft\models\User::getUsersList(), 'value' => function (Post $model) { return Html::a($model->author->username, ['/user/default/update', 'id' => $model->created_by], ['data-pjax' => 0]); }, 'format' => 'raw', 'visible' => User::hasPermission('viewUsers'), 'options' => ['style' => 'width:180px']], ['class' => 'yeesoft\\grid\\columns\\StatusColumn', 'attribute' => 'status', 'optionsArray' => Post::getStatusOptionsList(), 'options' => ['style' => 'width:60px']], ['class' => 'yeesoft\\grid\\columns\\DateFilterColumn', 'attribute' => 'published_at', 'value' => function (Post $model) { return '<span style="font-size:85%;" class="label label-' . (time() >= $model->published_at ? 'primary' : 'default') . '">' . $model->publishedDate . '</span>'; }, 'format' => 'raw', 'options' => ['style' => 'width:150px']]]]); ?> <?php Pjax::end(); ?> </div> </div> </div>
?> </div> <div class="col-sm-6 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'eav-attribute-option-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'eav-attribute-option-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'eav-attribute-option-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'eav-attribute-option-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['attribute' => 'id', 'options' => ['style' => 'width:20px']], ['class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'attribute' => 'value', 'controller' => '/eav/attribute-option', 'buttonsTemplate' => '{update} {delete}', 'title' => function (EavAttributeOption $model) { return Html::a($model->value, ['update', 'id' => $model->id], ['data-pjax' => 0]); }], ['attribute' => 'attribute_id', 'value' => function (EavAttributeOption $model) { return "{$model->attribute->id} - {$model->attribute->name} - {$model->attribute->label}"; }, 'filter' => ArrayHelper::merge(['' => Yii::t('yee', 'Not Selected')], EavAttribute::getEavAttributes()), 'options' => ['style' => 'width:300px']]]]); ?> <?php Pjax::end(); ?> </div> </div> </div>
<div class="row"> <div class="col-sm-12 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'user-visit-log-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'user-visit-log-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'user-visit-log-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActions' => ' ', 'columns' => [['attribute' => 'user_id', 'class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/user/visit-log', 'title' => function ($model) { return Html::a(@$model->user->username, ['view', 'id' => $model->id], ['data-pjax' => 0]); }, 'buttonsTemplate' => ''], 'language', 'os', 'browser', array('attribute' => 'ip', 'value' => function ($model) { return Html::a($model->ip, "http://ipinfo.io/" . $model->ip, ["target" => "_blank"]); }, 'format' => 'raw'), ['attribute' => 'visit_time', 'value' => function ($model) { return $model->visitDatetime; }], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{view}', 'contentOptions' => ['style' => 'width:70px; text-align:center;']]]]); ?> <?php Pjax::end(); ?> </div> </div> </div> <?php DateRangePicker::widget(['model' => $searchModel, 'attribute' => 'visit_time']);
<div class="row"> <div class="col-sm-12 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'role-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'role-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'role-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'role-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['attribute' => 'description', 'class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/user/role', 'title' => function (Role $model) { return Html::a($model->description, ['view', 'id' => $model->name], ['data-pjax' => 0]); }, 'buttons' => ['view' => function ($url, $model, $key) { $options = array_merge(['title' => Yii::t('yee', 'Settings'), 'aria-label' => Yii::t('yee', 'Settings'), 'data-pjax' => '0']); return Html::a(Yii::t('yee', 'Settings'), $url, $options); }]], ['attribute' => 'name', 'options' => ['style' => 'width:200px']]]]); ?> <?php Pjax::end(); ?> </div> </div> </div>
<div class="row"> <div class="col-sm-12 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'post-category-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'post-category-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'post-category-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'post-category-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/post/category', 'title' => function (Category $model) { return Html::a($model->title, ['/post/category/update', 'id' => $model->id], ['data-pjax' => 0]); }, 'buttonsTemplate' => '{update} {delete}'], ['attribute' => 'parent_id', 'value' => function (Category $model) { if ($parent = $model->getParent()->one() and $parent->id > 1) { return Html::a($parent->title, ['/post/category/update', 'id' => $parent->id], ['data-pjax' => 0]); } else { return '<span class="not-set">' . Yii::t('yii', '(not set)') . '</span>'; } }, 'format' => 'raw', 'filter' => Category::getCategories(), 'filterInputOptions' => ['class' => 'form-control', 'encodeSpaces' => true]], 'description:ntext', ['class' => 'yeesoft\\grid\\columns\\StatusColumn', 'attribute' => 'visible']]]); ?> <?php Pjax::end(); ?> </div> </div> </div>
?> </div> </div> <div class="panel panel-default"> <div class="panel-body"> <div class="row"> <div class="col-sm-12 text-right"> <?php echo GridPageSize::widget(['pjaxId' => 'post-tag-grid-pjax']); ?> </div> </div> <?php Pjax::begin(['id' => 'post-tag-grid-pjax']); ?> <?php echo GridView::widget(['id' => 'post-tag-grid', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'bulkActionOptions' => ['gridId' => 'post-tag-grid', 'actions' => [Url::to(['bulk-delete']) => Yii::t('yee', 'Delete')]], 'columns' => [['class' => 'yeesoft\\grid\\CheckboxColumn', 'options' => ['style' => 'width:10px']], ['class' => 'yeesoft\\grid\\columns\\TitleActionColumn', 'controller' => '/post/tag', 'title' => function (Tag $model) { return Html::a($model->title, ['/post/tag/update', 'id' => $model->id], ['data-pjax' => 0]); }, 'buttonsTemplate' => '{update} {delete}'], 'slug']]); ?> <?php Pjax::end(); ?> </div> </div> </div>