diff --git a/src/views/account/index.php b/src/views/account/index.php
index 3902d8ed..86e10db0 100644
--- a/src/views/account/index.php
+++ b/src/views/account/index.php
@@ -21,7 +21,7 @@
Pjax::begin(array_merge(Yii::$app->params['pjax'], ['enablePushState' => true]));
echo Html::beginForm();
-$box = ActionBox::begin(['model' => $model, 'bulk' => true, 'options' => ['class' => 'box-info']]);
+$box = ActionBox::begin(['model' => $model, 'dataProvider' => $dataProvider]);
$box->beginActions();
?>
@@ -30,13 +30,12 @@
= $box->renderSearchButton(); ?>
- = LinkSorter::widget([
- 'show' => true,
- 'sort' => $dataProvider->getSort(),
+ = $box->renderSorter([
'attributes' => [
'login', 'client', 'server', 'state', 'type'
],
- ]); ?>
+ ]) ?>
+ = $box->renderPerPage() ?>
= \yii\bootstrap\Dropdown::widget([
'items' => [
['label' => Yii::t('app', 'Create {modelClass}', ['modelClass' => 'account']), 'url' => ['create']],
diff --git a/src/views/db/index.php b/src/views/db/index.php
index 41621108..d0429505 100644
--- a/src/views/db/index.php
+++ b/src/views/db/index.php
@@ -13,17 +13,17 @@
Pjax::begin(array_merge(Yii::$app->params['pjax'], ['enablePushState' => true]));
-$box = ActionBox::begin(['model' => $model, 'options' => ['class' => 'box-info']]);
+$box = ActionBox::begin(['model' => $model, 'dataProvider' => $dataProvider]);
$box->beginActions();
print $box->renderCreateButton(Yii::t('app', 'Create {modelClass}', ['modelClass' => 'DB'])) . ' ';
-print $box->renderSearchButton();
-echo LinkSorter::widget([
- 'show' => true,
- 'sort' => $dataProvider->getSort(),
+print $box->renderSearchButton(); ?>
+= $box->renderSorter([
'attributes' => [
'client', 'account', 'server', 'name', 'description', 'state'
],
-]);
+]) ?>
+= $box->renderPerPage() ?>
+endActions();
$box->beginBulkActions();
diff --git a/src/views/hdomain/index.php b/src/views/hdomain/index.php
index bcd98aa5..124c21ae 100644
--- a/src/views/hdomain/index.php
+++ b/src/views/hdomain/index.php
@@ -21,11 +21,21 @@
echo Html::beginForm();
-$box = ActionBox::begin(['model' => $model, 'options' => ['class' => 'box-info']]);
+$box = ActionBox::begin(['model' => $model, 'dataProvider' => $dataProvider]);
$box->beginActions();
-print $box->renderCreateButton(Yii::t('app', 'Create {modelClass}', ['modelClass' => Yii::t('app', 'Domain')]));
-echo ' ';
+print $box->renderCreateButton(Yii::t('app', 'Create {modelClass}', ['modelClass' => Yii::t('app', 'Domain')])) . ' ';
print $box->renderSearchButton();
+print $box->renderSorter([
+ 'attributes' => [
+ 'domain',
+ 'client',
+ 'seller',
+ 'account',
+ 'server',
+ 'state',
+ ],
+]);
+print $box->renderPerPage();
$box->endActions();
$box->beginBulkActions();