create.php 921 Bytes
<?php
    
    use artbox\catalog\models\Brand;
    use artbox\catalog\models\BrandLang;
    use yii\helpers\Html;
    use yii\web\View;
    use yiister\gentelella\widgets\Panel;
    
    /**
     * @var BrandLang[] $modelLangs
     * @var Brand       $model
     * @var View        $this
     */
    
    $this->title = Yii::t('catalog', 'Create Brand');
    $this->params[ 'breadcrumbs' ][] = [
        'label' => Yii::t('catalog', 'Brands'),
        'url'   => [ 'index' ],
    ];
    $this->params[ 'breadcrumbs' ][] = $this->title;
?>
<div class="brand-create">
    
    <?php
        $xPanel = Panel::begin(
            [
                'header' => Html::encode($this->title),
            ]
        );
    ?>
    
    <?= $this->render(
        '_form',
        [
            'model'      => $model,
            'modelLangs' => $modelLangs,
        ]
    ) ?>
    
    <?php
        $xPanel::end();
    ?>

</div>