Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (Yii::app()->user->checkAccess('batchUpdateStatusRequest')): ?>
- <?php $this->beginWidget('bootstrap.widgets.TbModal', array('id' => 'myModalSetStatus')); ?>
- <div class="modal-header">
- <a class="close" data-dismiss="modal">×</a>
- <h4><?php echo Yii::t('main-ui', 'Set status selected'); ?></h4>
- </div>
- <div class="modal-body">
- <label class="required" for="merge-list"><b>Изменить статус</b></label>
- <div class="row-fluid">
- <?php
- $role = Roles::model()->findByAttributes(array('value' => strtolower(Yii::app()->user->role)));
- $list_data = CHtml::listData($role->status_rl, 'name', 'name');
- echo CHtml::dropDownList('Status', null, $list_data, array('class' => 'span12'));
- ?>
- </div>
- </div>
- <div class="modal-footer">
- <?php $this->widget('bootstrap.widgets.TbButton',
- array('label' => 'Изменить статус', 'type' => 'primary', 'id' => 'btnSetStatus')); ?>
- </div>
- <?php $this->endWidget(); ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment