IgorKorytin

Untitled

Aug 13th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.36 KB | None | 0 0
  1. <?php $this->beginWidget('bootstrap.widgets.TbModal', array('id' => 'myModal')); ?>
  2.     <div class="modal-header">
  3.         <a class="close" data-dismiss="modal">&times;</a>
  4.         <h4><?php echo Yii::t('main-ui', 'Выберите группу исполнителей'); ?></h4>
  5.     </div>
  6.     <div class="modal-body">
  7.         <div class="row-fluid">
  8.             <?php $this->widget(
  9.                 'bootstrap.widgets.TbSelect2',
  10.                 [
  11.                     'model' => $model,
  12.                     'name' => 'groups_id',
  13. //                    'data' => Groups::allByService($model->service_id),
  14.                     'data' => Groups::allByService2($model),
  15.                     'htmlOptions' => [
  16.                         'class' => 'span12',
  17.                     ],
  18.                 ]
  19.             ); ?>
  20.         </div>
  21.       </div>
  22.     <div class="modal-footer">
  23.         <?php $this->widget('bootstrap.widgets.TbButton', array(
  24.             'buttonType' => 'submit',
  25.             'type' => 'primary',
  26.             'label' => Yii::t('main-ui', 'Assign'),
  27.         )); ?>
  28.         <?php $this->widget('bootstrap.widgets.TbButton', array(
  29.             'label' => Yii::t('main-ui', 'Cancel'),
  30.             'url' => '#',
  31.             'htmlOptions' => array('data-dismiss' => 'modal'),
  32.         )); ?>
  33.     </div>
  34. <?php $this->endWidget(); ?>
  35. <?php $this->endWidget(); ?>
Advertisement
Add Comment
Please, Sign In to add comment