Blame view

artweb/artbox-catalog/views/variant-option-excl/_form_language.php 754 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
21
22
23
24
25
26
27
28
  <?php
      use artbox\catalog\models\OptionLang;
      use artbox\core\helpers\SlugifyDecorator;
      use artbox\core\models\Language;
      use yii\web\View;
      use yii\widgets\ActiveForm;
      
      /**
       * @var OptionLang $model_lang
       * @var Language   $language
       * @var ActiveForm $form
       * @var View       $this
       */
  ?>
  <?php
      $attributeField = $form->field($model_lang, '[' . $language->id . ']value')
                             ->textInput([ 'maxlength' => true ]);
      echo $attributeField;
  ?>
  
  <?= SlugifyDecorator::decorate(
      $form->field($model_lang, '[' . $language->id . ']aliasValue'),
      [ '/alias/slugify' ],
      $attributeField,
      false,
      $language->id
  )
                      ->textInput([ 'maxlength' => true ]); ?>