?> <?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> </div> </div>
$box->beginTools(); ?> <?php echo Html::a(Yii::t('hipanel', 'Details'), ['@contact/view', 'id' => $model->id], ['class' => 'btn btn-default btn-xs']); ?> <?php echo Html::a(Yii::t('hipanel', 'Change'), ['@contact/update', 'id' => $model->id], ['class' => 'btn btn-default btn-xs']); ?> <?php $box->endTools(); ?> <?php $box->endHeader(); ?> <?php $box->beginBody(); ?> <?php echo ContactGridView::detailView(['boxed' => false, 'model' => $model->contact, 'columns' => ['first_name', 'last_name', 'organization', 'email', 'abuse_email', 'messengers', 'social_net', 'voice_phone', 'fax_phone', 'street', 'city', 'province', 'postal_code', 'country']]); ?> <?php $box->endBody(); ?> <?php $box->end(); ?> </div> </div> </div> </div>
$contact = $model->{$contactType}; ?> <div class="col-md-6"> <div class="row"> <div class="col-md-6"><?php echo Html::tag('h4', $label); ?> </div> <div class="col-md-6"> <div class="pull-right btn-group" style="padding-top:10px"> <?php echo Html::a(Yii::t('hipanel', 'Details'), ['@contact/view', 'id' => $contact['id']], ['class' => 'btn btn-default btn-xs']); ?> <?php // Html::a(Yii::t('hipanel', 'Change'), [ // @contact/change-contact', // contactId' => $contact['id'], // contactType' => $contactType, // domainId' => $model->id, // domainName' => $model->domain, // class' => 'btn btn-default btn-xs']) ?> </div> </div> </div> <?php echo ContactGridView::detailView(['boxed' => false, 'model' => $contact, 'columns' => ['name_v', 'email_v', 'organization', 'voice_phone', 'fax_phone']]); ?> </div> <?php }
$page->endContent(); ?> <?php $page->beginContent('bulk-actions'); ?> <?php echo $page->renderBulkButton(Yii::t('hipanel', 'Delete'), 'delete', 'danger'); ?> <?php $page->endContent(); ?> <?php $page->beginContent('table'); ?> <?php $page->beginBulkForm(); ?> <?php echo ContactGridView::widget(['dataProvider' => $dataProvider, 'boxed' => false, 'filterModel' => $model, 'columns' => ['checkbox', 'name', 'actions', 'email', 'client_id', 'seller_id']]); ?> <?php $page->endBulkForm(); ?> <?php $page->endContent(); ?> <?php $page->end(); Pjax::end();