IgorKorytin

Untitled

Aug 13th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.74 KB | None | 0 0
  1.  <?php if (Yii::app()->user->checkAccess('batchUpdateStatusRequest')): ?>
  2.                                     <?php $this->beginWidget('bootstrap.widgets.TbModal', array('id' => 'myModalSetStatus')); ?>
  3.                                     <div class="modal-header">
  4.                                         <a class="close" data-dismiss="modal">&times;</a>
  5.                                         <h4><?php echo Yii::t('main-ui', 'Set status selected'); ?></h4>
  6.                                     </div>
  7.                                     <div class="modal-body">
  8.                                         <label class="required" for="merge-list"><b>Изменить статус</b></label>
  9.                                         <div class="row-fluid">
  10.                                             <?php
  11.                                             $role = Roles::model()->findByAttributes(array('value' => strtolower(Yii::app()->user->role)));
  12.                                             $list_data = CHtml::listData($role->status_rl, 'name', 'name');
  13.                                             echo CHtml::dropDownList('Status', null, $list_data, array('class' => 'span12'));
  14.                                             ?>
  15.                                         </div>
  16.                                     </div>
  17.                                     <div class="modal-footer">
  18.                                         <?php $this->widget('bootstrap.widgets.TbButton',
  19.                                         array('label' => 'Изменить статус', 'type' => 'primary', 'id' => 'btnSetStatus')); ?>
  20.                                     </div>
  21.                                     <?php $this->endWidget(); ?>
  22.                                 <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment