/** * Buttons render. */ protected function initBoxTools() { parent::initBoxTools(); if (!isset($this->boxTools['collapse'])) { $this->boxTools['collapse'] = ['icon' => 'fa-minus', 'options' => ['class' => 'btn-default', 'title' => Yii::t('hipanel', 'collapse'), 'data-widget' => 'collapse']]; } if (!isset($this->boxTools['remove'])) { $this->boxTools['remove'] = ['icon' => 'fa-times', 'options' => ['class' => 'btn-default', 'title' => Yii::t('hipanel', 'remove'), 'data-widget' => 'remove']]; } }
public function run() { if ($this->boxed) { Box::begin($this->boxOptions); parent::run(); Box::end(); } else { parent::run(); } }
?> <?php $box->beginBody(); ?> <?php echo ContactGridView::detailView(['boxed' => false, 'model' => $model, 'columns' => ['first_name', 'last_name', 'organization', 'street', 'city', 'province', 'postal_code', 'country']]); ?> <?php $box->endBody(); ?> <?php $box->end(); ?> <?php $box = Box::begin(['renderBody' => false, 'collapsed' => true, 'title' => Yii::t('hipanel:client', 'Additional information')]); ?> <?php $box->beginBody(); ?> <?php echo ContactGridView::detailView(['boxed' => false, 'model' => $model, 'columns' => ['passport_date', 'passport_no', 'passport_by', 'organization_ru', 'inn', 'kpp', 'director_name', 'isresident']]); ?> <?php $box->endBody(); ?> <?php $box->end(); ?> </div> </div>
<?php use hipanel\widgets\Box; $this->title = Yii::t('hipanel', 'Update'); $this->params['breadcrumbs'][] = ['label' => Yii::t('hipanel', 'Name Server'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <?php Box::begin(); ?> <?php echo $this->render('_form', ['models' => $models]); Box::end(); ?>
$box->endHeader(); $box->beginBody(); echo TemplateGridView::detailView(['model' => $model, 'boxed' => false, 'columns' => ['author_id', 'name', 'is_published']]); $box->endBody(); $box->end(); ?> </div> <div class="col-md-9"> <div class="row"> <?php foreach ($model->texts as $translation) { ?> <div class="col-md-12"> <?php $box = Box::begin(['renderBody' => false]); $box->beginHeader(); echo $box->renderTitle(Yii::t('hipanel:ticket', 'Translation: {language}', ['language' => Yii::t('hipanel', $translation->lang)])); $box->endHeader(); $box->beginBody(); if (!empty($translation->text)) { echo Markdown::process($translation->text); } else { echo Html::tag('span', Yii::t('hipanel:ticket', 'No translation'), ['class' => 'text-danger']); } $box->endBody(); $box->end(); ?> </div> <?php }
} }).done(function(data) { formBox.find('.overlay').remove(); // Remove ajax spiner scrollTo('.comment-tab'); \$('.comment-tab a[href="#message"').tab('show'); // Open tab chatInput.val(data).trigger('blur'); chatInput.focus(); // Scroll to form }); }); JS , View::POS_READY); ?> <!-- Chat box --> <?php $box = Box::begin(['options' => ['class' => 'box-primary']]); ?> <div><!-- dummy div to make .message-block-move-btn work. do not remove --></div> <?php echo $this->render('_form', compact('form', 'model', 'topic_data', 'state_data', 'priority_data', 'action')); ?> <?php if ($model->isRelationPopulated('answers')) { ?> <hr class="no-panel-padding-h panel-wide padding-bottom"> <div class="widget-article-comments tab-pane panel no-padding no-border fade in active"> <?php echo $this->render('_comments', ['model' => $model, 'client' => $client]); ?> </div>
public function run() { parent::run(); $this->registerClientScript(); }
?> <?php $box->endFooter(); ?> <?php $box->end(); ?> </div> <?php if ($client) { ?> <div class="col-md-12"> <?php $box = Box::begin(['options' => ['class' => 'box-solid']]); ?> <div class="profile-block"> <div class="profile-photo"> <?php if ($client->email) { ?> <?php echo $this->render('//layouts/gravatar', ['email' => $client->email, 'size' => 120, 'alt' => '']); ?> <?php } ?> </div> <div class="profile-user-name"> <?php