Blame view

artweb/artbox-catalog/views/variant/_form_stock.php 537 Bytes
16f1e516   mzavalniuk   add artbox-catalo...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <?php
      use \yii\helpers\Html;
      /**
       * @var \artbox\stock\models\Shop $shops;
       */
  ?>
  
  <?php if ($shops !== NULL):?>
  
      <?php foreach ($shops as $shop):?>
          <div class="form-group">
          <?=Html::textInput('shop[]', $shop->lang->title,[
              'readonly'  => true,
          ])?>
          <?=Html::textInput('counts['.$shop->id.']', ($model->shopCount($shop->id) !== null) ? $model->shopCount($shop->id) : '',[
              'readonly'  => false,
          ])?>
          </div>
      <?php endforeach;?>
  <?php endif;?>