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(); }
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()); }
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; } }
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(); }
public function init() { parent::init(); AjaxModalAsset::register($this->view); }
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(); }