Skip to content

Commit

Permalink
Fix BulkButton -> css
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Aug 4, 2015
1 parent 7c7ed71 commit 9f427ff
Showing 1 changed file with 28 additions and 26 deletions.
54 changes: 28 additions & 26 deletions src/views/server/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,35 +39,37 @@
]) ?>
<?php $box->endActions() ?>

<?php $box->renderBulkActions([
'items' => ButtonDropdown::widget([
'label' => Yii::t('app', 'Lock'),
'dropdown' => [
'options' => ['class' => 'pull-right'],
'items' => [
[
'label' => Yii::t('app', 'Enable lock'),
'url' => '#',
'linkOptions' => [
'class' => 'bulk-action',
'data-attribute' => 'is_secured',
'data-value' => '1',
'data-url' => 'set-lock'
]
],
[
'label' => Yii::t('app', 'Disable lock'),
'url' => '#',
'linkOptions' => [
'class' => 'bulk-action',
'data-attribute' => 'is_secured',
'data-value' => '0',
'data-url' => 'set-lock'
<?= $box->renderBulkActions([
'items' => [
ButtonDropdown::widget([
'label' => Yii::t('app', 'Lock'),
'dropdown' => [
'options' => ['class' => 'pull-right'],
'items' => [
[
'label' => Yii::t('app', 'Enable lock'),
'url' => '#',
'linkOptions' => [
'class' => 'bulk-action',
'data-attribute' => 'is_secured',
'data-value' => '1',
'data-url' => 'set-lock'
]
],
[
'label' => Yii::t('app', 'Disable lock'),
'url' => '#',
'linkOptions' => [
'class' => 'bulk-action',
'data-attribute' => 'is_secured',
'data-value' => '0',
'data-url' => 'set-lock'
]
]
]
]
]
]),
]),
]
]) ?>
<?= $box->renderSearchForm(compact('states')) ?>
<?php $box::end() ?>
Expand Down

0 comments on commit 9f427ff

Please sign in to comment.