public function init()
 {
     $this->options['class'] = 'prepodavatel-peresechenie-modal fade';
     $this->header = Html::tag('h4', 'Пересечение занятости преподавателя');
     $this->footer = Html::tag('a', 'Ок', ['class' => 'btn btn-primary ok-btn', 'data-dismiss' => 'modal']);
     parent::init();
 }
Ejemplo n.º 2
0
 public function init()
 {
     $this->options['class'] = 'tema-picker fade';
     $this->header = Html::tag('h4', 'Выбор темы');
     $this->footer = $this->renderButtons();
     parent::init();
 }
 /**
  * Initializes the widget.
  */
 public function init()
 {
     $this->options = array_merge(['class' => 'modal-fs fade'], $this->options);
     $padding = $this->modalBodyPadding === false ? '0' : $this->modalBodyPadding;
     $this->getView()->registerCss("\n        .modal-fs .modal-body{\n          padding:{$padding};\n        }\n       ");
     parent::init();
     FullscreenModalAsset::register($this->getView());
 }
Ejemplo n.º 4
0
 public function run()
 {
     switch (empty($this->content)) {
         case false:
             parent::init();
             echo $this->content;
             parent::run();
             break;
         default:
             echo $this->renderTogglebutton() . Html::tag('div', Html::tag('div', Html::tag('div', $this->renderHeader() . $this->content, $this->contentOptions), $this->dialogOptions), $this->options);
             break;
     }
 }
Ejemplo n.º 5
0
Archivo: Modal.php Proyecto: vsguts/crm
 public function init()
 {
     if ($this->id) {
         $this->options['id'] = $this->id;
     }
     if ($this->header) {
         $this->header = Html::tag('h4', $this->header, ['class' => 'modal-title']);
     }
     if ($this->btn_close) {
         $close_btn = Html::tag('button', __('Close'), ['type' => 'button', 'class' => 'btn btn-default', 'data-dismiss' => 'modal']);
         $this->footer .= PHP_EOL . $close_btn;
     }
     parent::init();
 }
Ejemplo n.º 6
0
 public function init()
 {
     parent::init();
     AjaxModalAsset::register($this->view);
 }
Ejemplo n.º 7
0
 public function init()
 {
     if (!$this->scenario) {
         throw new InvalidConfigException("Attribute 'scenario' is required");
     }
     Html::addCssClass($this->options['class'], 'text-left');
     $this->initAdditionalOptions();
     if ($this->handleSubmit !== false) {
         $this->registerClientScript();
     }
     parent::init();
 }