Skip to content

Commit

Permalink
Accounts GridView done
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Jul 30, 2015
1 parent 90ce547 commit d792336
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions views/account/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,40 @@
use hipanel\widgets\ActionBox;
use hipanel\widgets\Pjax;
use yii\helpers\Html;
use yii\helpers\Url;

$this->title = Yii::t('app', 'Accounts');
$this->params['breadcrumbs'][] = $this->title;
$this->breadcrumbs->setItems([
$this->title,
]);
$this->params['subtitle'] = Yii::$app->request->queryParams ? 'filtered list' : 'full list';

Pjax::begin(array_merge(Yii::$app->params['pjax'], ['enablePushState' => true]));

$box = ActionBox::begin(['options' => ['class' => 'box-info']]);
echo Html::beginForm();
$box = ActionBox::begin(['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']) . ' ';
echo ' ';
$box->endActions();

$box->beginBulkActions();
echo Html::submitButton(Yii::t('app', 'Delete'), ['class' => 'btn btn-danger', 'formmethod' => 'POST', 'formaction' => Url::to('delete')]);
$box->endBulkActions();
$box::end();

echo AccountGridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
'checkbox',
'seller_id',
'client_id',
'server',
'account',
'state',
'actions'
'actions',
'checkbox',
],
]);

Expand Down

0 comments on commit d792336

Please sign in to comment.