'; $form = ActiveForm::begin(); // ================ // ==== COMMON ==== // ================ echo $form->field($model_pid, 'termin_pid')->widget( Select2::classname(), [ 'data' => ArrayHelper::map( [ [ 'termin_id' => 0, 'termin_title' => 'NONE', ] ] + (new Termin)->finInfo([ 'show_all' => true, 'to_array' => true, ]), 'termin_id', 'termin_title' ), 'options' => ['placeholder' => 'Select a state ...'], 'pluginOptions' => [ 'allowClear' => true ], ] ); echo $form->field($model, 'termin_name')->textInput(['maxlength' => true]); // ============== // ==== LANG ==== // ============== $multilang = Multilang::begin(['ajaxpath' => Url::to(['termin/form']), 'form' => $form, 'data_langs' => $model_lang]); $first = 1; foreach ($model_lang as $index => $data) { echo '