Advertisement
fernandezekiel

Untitled

Oct 28th, 2012
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. <h1><?php echo Yii::t('userGroupsModule.general', 'Groups'); ?></h1>
  2. <?php if(Yii::app()->user->hasFlash('group')):?>
  3. <div class="info">
  4. <?php echo Yii::app()->user->getFlash('group'); ?>
  5. </div>
  6. <?php endif; ?>
  7. <?php $this->widget('zii.widgets.grid.CGridView', array(
  8. 'dataProvider'=>$groupModel->search(),
  9. 'id'=>'user-groups-group-grid',
  10. 'enableSorting'=>false,
  11. 'filter'=>$groupModel,
  12. 'summaryText'=>false,
  13. 'selectionChanged'=> 'function(id) { getPermission("'.Yii::app()->baseUrl.'", "'.UserGroupsAccess::GROUP.'", $.fn.yiiGridView.getSelection(id))}',
  14. 'columns'=>array(
  15. 'branch_id',
  16. 'groupname',
  17. 'level',
  18. ),
  19. )); ?>
  20.  
  21. <?php
  22. if (Yii::app()->user->pbac('userGroups.admin.admin'))
  23. echo CHtml::ajaxLink(Yii::t('userGroupsModule.admin', 'add group'),
  24. Yii::app()->createUrl('/userGroups/admin/accessList', array('what'=>UserGroupsAccess::GROUP, 'id'=>'new')),
  25. array('success'=>'js: function(data){ $("#group-detail").slideUp("slow", function(){ $("#group-detail").html(data).slideDown();}); }'),
  26. array('id'=>'new-group-'.time()));
  27. ?>
  28. <div id="group-detail" style="display:none;"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement