Example #1
0
echo empty($modelUserProfile->state) ? '' : $modelUserProfile->state . '<br>';
?>
                    <?php 
echo empty($modelUserProfile->zip) ? '' : $modelUserProfile->zip . '<br>';
?>
                    <?php 
echo empty($modelUserProfile->city) ? '' : $modelUserProfile->city . '<br>';
?>
                    <?php 
echo empty($modelUserProfile->address) ? '' : $modelUserProfile->address;
?>
                    <br><?php 
echo Html::a('Показать на карте', ['/users/site/pos-owner', 'id' => $modelUserProfile->user_id], ['class' => 'btn btn-primary']);
?>
                </div>
                <div class="tab-pane" id="tab-reviews"><?php 
echo getCommentsByUser::widget(['id' => $modelUserProfile->user_id]);
?>
</div>
            </div>

        </div>
        <div class="col-md-3">
            <div class="sidebar-right">
                <?php 
// getSimilar::widget(['id' => $model->id])
?>
            </div>
        </div>    
    </div>
</div>           
Example #2
0
echo Html::img(Url::to('@webuploads/' . $model->image), ['class' => 'img-thumbnail']);
?>
            <?php 
echo $form->field($model, 'file[]')->fileInput(['multiple' => true]);
?>
          
            <div class="form-group">
                <?php 
echo Html::submitButton($model->isNewRecord ? 'Создать' : 'Обновить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
            </div>
            <?php 
ActiveForm::end();
?>
            <?php 
if ($model = (new CatalogProfiles())->findProfile()) {
    echo Html::a('Обновить профиль специалиста', ['/catalog/site/update-profile', 'id' => $model->id], ['class' => 'btn btn-primary']);
} else {
    echo Html::a('Создать профиль специалиста', ['/catalog/site/create-profile'], ['class' => 'btn btn-primary']);
}
?>
        </div>
    </div>
    <div class="tab-pane" id="user-comments">
        <div class="products products-list">
            <?php 
echo getCommentsByUser::widget(['id' => \Yii::$app->user->getId()]);
?>
        </div>
    </div>        
</div>