Skip to content

Commit

Permalink
Merge pull request #5 from booxmedialtd/sandesh/BPLAT-4088CMSUserRolesUI
Browse files Browse the repository at this point in the history
BPLAT-4391 Removed dataTable to CMSUser Roles
  • Loading branch information
evgenii-aminocom authored Jan 11, 2018
2 parents b305fd0 + a19f87d commit 02114dd
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 61 deletions.
5 changes: 3 additions & 2 deletions controllers/AssignmentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public function actionIndex()
$this->render(
'index',
array(
'dataProvider' => $dataProvider
'dataProvider' => $dataProvider,
'pagination'=> ['pageSize' => 25],
)
);
}
Expand Down Expand Up @@ -137,4 +138,4 @@ protected function getAssignmentOptions($userId)

return $options;
}
}
}
3 changes: 2 additions & 1 deletion controllers/AuthItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function actionIndex()
'index',
array(
'dataProvider' => $dataProvider,
'pagination'=> ['pageSize' => 25],
)
);
}
Expand Down Expand Up @@ -314,4 +315,4 @@ public function getViewPath()
{
return $this->module->getViewPath() . DIRECTORY_SEPARATOR . 'authItem';
}
}
}
14 changes: 0 additions & 14 deletions views/assignment/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
'type' => [TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_STRIPED],
'dataProvider' => $dataProvider,
'emptyText' => Yii::t('AuthModule.main', 'No assignments found.'),
'template' => "{items}",
'columns' => [
[
'header' => Yii::t('AuthModule.main', 'User'),
Expand All @@ -32,16 +31,3 @@
],
]
);

Yii::app()->clientScript->registerScript('authComponents', "
$(function () {
// initialize dataTable
$('#auth-grid table').DataTable({
'paging' : true,
'lengthChange': true,
'searching' : true,
'ordering' : true,
'info' : true,
'autoWidth' : false
});
})", CClientScript::POS_END);
15 changes: 0 additions & 15 deletions views/assignment/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
'type' => [TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_STRIPED],
'dataProvider' => $authItemDp,
'emptyText' => Yii::t('AuthModule.main', 'This user does not have any assignments.'),
'template' => "{items}",
'columns' => [
[
'class' => 'AuthItemDescriptionColumn',
Expand Down Expand Up @@ -72,18 +71,4 @@
<?php $this->endWidget(); ?>

<?php endif; ?>
<?php

Yii::app()->clientScript->registerScript('authComponents', "
$(function () {
// initialize dataTable
$('#auth-view-grid table').DataTable({
'paging' : true,
'lengthChange': true,
'searching' : true,
'ordering' : true,
'info' : true,
'autoWidth' : false
});
})", CClientScript::POS_END);

15 changes: 0 additions & 15 deletions views/authItem/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
'id' => 'task-grid',
'dataProvider' => $dataProvider,
'emptyText' => Yii::t('AuthModule.main', 'No {type} found.', ['{type}' => $this->getTypeText(true)]),
'template' => "{items}",
'columns' => [
[
'name' => 'name',
Expand Down Expand Up @@ -64,17 +63,3 @@
]
);

Yii::app()->clientScript->registerScript('streamProfileComponents', "
$(function () {
// initialize dataTable
$('#task-grid table').DataTable({
'paging' : true,
'lengthChange': true,
'searching' : true,
'ordering' : true,
'info' : true,
'autoWidth' : false
});
})", CClientScript::POS_END);
14 changes: 0 additions & 14 deletions views/authItem/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@
'type' => [TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_STRIPED],
'dataProvider' => $descendantDp,
'emptyText' => Yii::t('AuthModule.main', 'This item does not have any descendants.'),
'template' => "{items}",
'columns' => [
[
'class' => 'AuthItemDescriptionColumn',
Expand Down Expand Up @@ -155,16 +154,3 @@
<?php $this->endWidget(); ?>

<?php endif;

Yii::app()->clientScript->registerScript('authComponents', "
$(function () {
// initialize dataTable
$('#authitem-view-grid table').DataTable({
'paging' : true,
'lengthChange': true,
'searching' : true,
'ordering' : true,
'info' : true,
'autoWidth' : false
});
})", CClientScript::POS_END);

0 comments on commit 02114dd

Please sign in to comment.