/**
  * Renders the widget.
  */
 public function run()
 {
     echo "\n" . $this->renderTools();
     echo "\n" . Html::endTag('div');
     // modal-content
     echo "\n" . Html::endTag('div');
     // modal-content
     echo Html::beginTag('div', ['class' => 'portlet-body']) . "\n";
     echo $this->content . "\n";
     echo "\n" . Html::endTag('div');
 }
 /**
  * (non-PHPdoc)
  * @see \yii\bootstrap\Widget::init()
  */
 public function init()
 {
     parent::init();
     if (!isset($this->options['id'])) {
         $this->options['id'] = $this->getId();
     }
     $this->initOptions();
     echo Html::beginTag('div', ['class' => 'table-scrollable']) . "\n";
     echo Html::beginTag('table', $this->options) . "\n";
     echo $this->renderHeader() . "\n";
     echo Html::beginTag('tbody') . "\n";
 }
 /**
  * (non-PHPdoc)
  * @see \yii\base\Widget::run()
  */
 public function run()
 {
     $content = '';
     $content .= Html::beginTag('div', $this->options);
     $content .= Html::beginTag('div', ['id' => $this->name . '-group', 'class' => $this->inline ? 'icheck-inline' : 'icheck-list']);
     if ($this->items) {
         foreach ($this->items as $value => $label) {
             $content .= Html::beginTag('label');
             $content .= $this->renderContent($value);
             $content .= "\n" . $label . "\n";
             $content .= Html::endTag('label');
         }
     }
     $content .= Html::endTag('div');
     $content .= Html::endTag('div');
     echo $content;
 }
 /**
  * Renders the opening tag of the modal body.
  *
  * @return string the rendering result
  */
 protected function renderBodyBegin()
 {
     return Html::beginTag('div', ['class' => 'modal-body']);
 }
 /**
  * Renders the opening tag of the field container.
  *
  * @return string the rendering result.
  */
 public function begin()
 {
     $inputID = Html::getInputId($this->model, $this->attribute);
     $options = $this->options;
     $class = isset($options['class']) ? [$options['class']] : [];
     $class[] = "field-{$inputID}";
     $options['class'] = implode(' ', $class);
     $tag = ArrayHelper::remove($options, 'tag', 'div');
     return Html::beginTag($tag, $options);
 }
 /**
  * (non-PHPdoc)
  * @see \yii\base\Widget::run()
  */
 public function run()
 {
     $content = '';
     if ($this->label) {
         if (isset($this->labelOptions['class'])) {
             $this->labelOptions['class'] = 'control-label ' . $this->labelOptions['class'];
         } else {
             Html::addCssClass($this->labelOptions, 'col-md-4');
         }
         $content .= Html::tag('label', $this->label, $this->labelOptions);
     }
     $content .= Html::beginTag('div', $this->options);
     $content .= Html::beginTag('div', ['id' => $this->name . '-group', 'class' => $this->inline ? 'icheck-inline' : 'icheck-list']);
     if ($this->items) {
         foreach ($this->items as $value => $label) {
             $content .= Html::beginTag('label');
             $content .= $this->renderContent($value);
             $content .= "\n" . $label . "\n";
             $content .= Html::endTag('label');
         }
     }
     $content .= Html::endTag('div');
     $content .= Html::endTag('div');
     echo Html::tag('div', $content, ['class' => 'form-group']);
 }