rhosocial/yii2-organization

View on GitHub
web/organization/views/my/update.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/**
 *  _   __ __ _____ _____ ___  ____  _____
 * | | / // // ___//_  _//   ||  __||_   _|
 * | |/ // /(__  )  / / / /| || |     | |
 * |___//_//____/  /_/ /_/ |_||_|     |_|
 * @link https://vistart.me/
 * @copyright Copyright (c) 2016 - 2017 vistart
 * @license https://vistart.me/license/
 */

use rhosocial\organization\Organization;
use rhosocial\organization\Profile;
use rhosocial\organization\widgets\ProfileFormWidget;
use yii\helpers\Html;
use yii\web\View;

/* @var $this View */
/* @var $organization Organization */
/* @var $model Profile */
$this->title = Yii::t('organization', 'Update Profile') . " {$model->name} (" . $organization->getID() . ')';
$this->params['breadcrumbs'][] = Yii::t('organization', 'Update Profile');
echo ProfileFormWidget::widget(['model' => $model]);
?>
<h3><?= Yii::t('user', 'Other operations') ?></h3>
<hr>
<div class="row">
    <div class="col-md-12">
        <?= Html::a(Yii::t('organization', 'Back to Organization List'), [
            'index',
        ], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('organization', 'Member List'), ['member', 'org' => $organization->getID()], ['class' => 'btn btn-primary']) ?>
    </div>
</div>