Skip to content

Commit

Permalink
Index page redone with actual standarts
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Aug 19, 2015
1 parent 09d4ca0 commit 96d66fd
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions src/views/server/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* @var View $this
*/
$this->title = Yii::t('app', 'Servers');
$this->title = Yii::t('app', 'Servers');
$this->subtitle = Yii::t('app', Yii::$app->request->queryParams ? 'filtered list' : 'full list');
$this->breadcrumbs->setItems([
$this->title
Expand Down Expand Up @@ -48,28 +48,28 @@
<?= $box->renderBulkActions([
'items' => [
ButtonDropdown::widget([
'label' => Yii::t('app', 'Lock'),
'label' => Yii::t('app', 'Lock'),
'dropdown' => [
'options' => ['class' => 'pull-right'],
'items' => [
[
'label' => Yii::t('app', 'Enable lock'),
'url' => '#',
'label' => Yii::t('app', 'Enable lock'),
'url' => '#',
'linkOptions' => [
'class' => 'bulk-action',
'class' => 'bulk-action',
'data-attribute' => 'is_secured',
'data-value' => '1',
'data-url' => 'set-lock'
'data-value' => '1',
'data-url' => 'set-lock'
]
],
[
'label' => Yii::t('app', 'Disable lock'),
'url' => '#',
'label' => Yii::t('app', 'Disable lock'),
'url' => '#',
'linkOptions' => [
'class' => 'bulk-action',
'class' => 'bulk-action',
'data-attribute' => 'is_secured',
'data-value' => '0',
'data-url' => 'set-lock'
'data-value' => '0',
'data-url' => 'set-lock'
]
]
]
Expand All @@ -78,15 +78,15 @@
]
]) ?>
<?= $box->renderSearchForm(compact('states')) ?>
<?php $box::end() ?>
<?php $box->end() ?>

<?php
$box->beginBulkForm();
print ServerGridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $model,
'osImages' => $osimages,
'columns' => [
'filterModel' => $model,
'osImages' => $osimages,
'columns' => [
'checkbox',
'server',
'client',
Expand All @@ -100,8 +100,5 @@
'actions',
]
]);
$box::endBulkForm();
?>

<?php
$box->endBulkForm();
Pjax::end();

0 comments on commit 96d66fd

Please sign in to comment.