update.php 917 Bytes
<?php
    
    use yii\helpers\Html;
    
    /* @var $this yii\web\View */
    /* @var $model artbox\stock\models\VariantToShop */
    /* @var $shop artbox\stock\models\Shop */
    
    $this->title = \Yii::t('stock', "Update Count") . ': ' . $model->variant->sku;
    $this->params[ 'breadcrumbs' ][] = [
        'label' => 'Variant To Shops',
        'url'   => [ 'index' ],
    ];
    $this->params[ 'breadcrumbs' ][] = [
        'label' => $model->variant->sku,
        'url'   => [
            'view',
            'variant_id' => $model->variant_id,
            'shop_id'    => $model->shop_id,
        ],
    ];
    $this->params[ 'breadcrumbs' ][] = \Yii::t('stock', 'Update');
?>
<div class="variant-to-shop-update">
  
  <h1><?= Html::encode($this->title) ?></h1>
    
    <?= $this->render(
        '_form',
        [
            'model' => $model,
            'shop'  => $shop,
        ]
    ) ?>

</div>