Blame view

views/blog-category/_form_language.php 904 Bytes
593851ec   Alexey Boroda   First commit
1
  <?php
ee588281   Alexey Boroda   -Blog backend ready
2
3
4
5
      
      use artbox\core\helpers\SlugifyDecorator;
      use artbox\weblog\models\CategoryLang;
      use artbox\core\models\Language;
593851ec   Alexey Boroda   First commit
6
7
8
9
      use yii\web\View;
      use yii\widgets\ActiveForm;
      
      /**
ee588281   Alexey Boroda   -Blog backend ready
10
11
12
13
       * @var CategoryLang $model_lang
       * @var Language     $language
       * @var ActiveForm   $form
       * @var View         $this
593851ec   Alexey Boroda   First commit
14
15
       */
  ?>
ee588281   Alexey Boroda   -Blog backend ready
16
17
  <?= $attributeField = $form->field($model_lang, '[' . $language->id . ']title')
                             ->textInput([ 'maxlength' => true ]); ?>
593851ec   Alexey Boroda   First commit
18
  
ee588281   Alexey Boroda   -Blog backend ready
19
20
21
  <?= SlugifyDecorator::decorate(
      $form->field($model_lang, '[' . $language->id . ']aliasValue'),
      [ '/alias/slugify' ],
a77af268   Yarik   Slugify language
22
23
24
      $attributeField,
      false,
      $language->id
ee588281   Alexey Boroda   -Blog backend ready
25
26
  )
                      ->textInput([ 'maxlength' => true ]); ?>
593851ec   Alexey Boroda   First commit
27
28
29
30
31
32
33
  
  <?= $form->field($model_lang, '[' . $language->id . ']description')
           ->textarea(
               [
                   'rows' => '10',
               ]
           ) ?>