From 94a5459d23b9a8910de9e85582d2d92f46ddda08 Mon Sep 17 00:00:00 2001 From: Andrey Klochok Date: Thu, 6 Aug 2015 19:31:27 +0300 Subject: [PATCH] Change create separate buttons to one, Dropdown button --- src/views/account/index.php | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/views/account/index.php b/src/views/account/index.php index ff1b2cd1..3902d8ed 100644 --- a/src/views/account/index.php +++ b/src/views/account/index.php @@ -23,18 +23,29 @@ echo Html::beginForm(); $box = ActionBox::begin(['model' => $model, 'bulk' => true, 'options' => ['class' => 'box-info']]); $box->beginActions(); +?> + -echo Html::a(Yii::t('app', 'Create {modelClass}', ['modelClass' => 'account']), ['create'], ['class' => 'btn btn-success']) . ' '; -echo Html::a(Yii::t('app', 'Create FTP {modelClass}', ['modelClass' => 'account']), ['create-ftponly'], ['class' => 'btn btn-success']) . ' '; -print $box->renderSearchButton(); -echo LinkSorter::widget([ - 'show' => true, - 'sort' => $dataProvider->getSort(), - 'attributes' => [ - 'login', 'client', 'server', 'state', 'type' - ], -]); - +endActions(); $box->beginBulkActions();