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 }
<?php echo \hipanel\widgets\FileRender::widget(['file' => $document->file, 'lightboxLinkOptions' => ['data-lightbox' => 'files-' . $date]]); ?> <?php } ?> </div> </div> <?php } ?> </div> <div class="col-md-6"> <?php Box::begin(['title' => Yii::t('hipanel:client', 'Attach new documents')]); ?> <p> <?php echo Yii::t('hipanel:client', 'You can upload copy of your documents in order to help us verify your identity'); ?> </p> <?php $form = ActiveForm::begin(['id' => 'attach-form', 'enableClientValidation' => true, 'validateOnBlur' => true, 'options' => ['enctype' => 'multipart/form-data']]); echo $form->field($model, 'id')->hiddenInput()->label(false); echo $form->field($model, 'title')->textInput(['placeholder' => Yii::t('hipanel:client', 'Passport, ID card, etc')]); echo $form->field($model, 'file')->widget(FileInput::class, ['pluginOptions' => ['previewFileType' => 'any', 'showRemove' => true, 'showUpload' => false]])->label(false); ?>
</div> </div> </div> </div> <?php Box::end(); ?> </div> <?php } ?> </div> <?php DynamicFormWidget::end(); Box::begin(['options' => ['class' => 'box-solid']]); ?> <div class="row"> <div class="col-md-12 no"> <?php echo Html::submitButton(Yii::t('hipanel', 'Save'), ['class' => 'btn btn-success']); ?> <?php echo Html::button(Yii::t('hipanel', 'Cancel'), ['class' => 'btn btn-default', 'onclick' => 'history.go(-1)']); ?> </div> </div> <?php Box::end(); ActiveForm::end();
} }).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>
position: relative; display: block; padding: 10px 15px; } CSS ); ?> <?php Pjax::begin(Yii::$app->params['pjax']); ?> <div class="row" xmlns="http://www.w3.org/1999/html"> <div class="col-md-3"> <?php Box::begin(['options' => ['class' => 'box-solid'], 'bodyOptions' => ['class' => 'no-padding']]); ?> <div class="profile-user-img text-center"> <img class="img-thumbnail" src="//mini.s-shot.ru/1024x768/PNG/200/Z100/?<?php echo $model->domain; ?> "/> </div> <p class="text-center"> <span class="profile-user-role"><?php echo $this->title; ?> </span> <br> <span class="profile-user-name"><?php echo ClientSellerLink::widget(compact('model'));