rhosocial/yii2-organization

View on GitHub
web/user/views/organization/set-up-organization.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\forms\SetUpForm;
use rhosocial\organization\widgets\SetUpFormWidget;
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model SetUpForm */
$this->title = Yii::t('organization', ($model->getParent()) ? 'Set Up New Department' : 'Set Up New Organization');
$this->params['breadcrumbs'][] = $this->title;
echo SetUpFormWidget::widget(['model' => $model]);
?>
<div class="row">
    <div class="col-md-3">
        <?= Html::a(Yii::t('organization', 'Back to List'), [
            'list',
        ], ['class' => 'btn btn-primary']) ?>
    </div>
</div>