Blame view

backend/modules/location/views/city/_form.php 553 Bytes
d1f8bd40   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  <?php
  use thread\app\bootstrap\ActiveForm;
  //
  use \backend\modules\location\models\Country;
  
  /**
   * @var $model \backend\modules\location\models\City
   * @var $modelLang \backend\modules\location\models\CityLang
   */
  
  $form = ActiveForm::begin();
  //
  echo
      $form->submit($model, $this)
      . $form->text_line($model, 'alias')
      . $form->text_line_lang($modelLang, 'title')
      . $form->field($model, 'country_id')->selectOne(Country::dropDownList())
      . $form->switcher($model, 'published')
      . $form->submit($model, $this);
  //
  ActiveForm::end();