diff --git a/frontend/views/option/create.php b/frontend/views/option/create.php
index f8db730..7c128cc 100644
--- a/frontend/views/option/create.php
+++ b/frontend/views/option/create.php
@@ -11,16 +11,9 @@ $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Options'), 'url' =>
$this->params['breadcrumbs'][] = $this->title;
?>
-
= Html::encode($this->title) ?>
-
- = $this->render('_form', [
- 'model' => $model,
- 'models' => $models,
- 'modellang' => $modellang,
- 'modeldb' => $modeldb,
- 'model_id' => $model_id,
- 'fields' => $fields
- ]) ?>
+ render('_form', $oneform);
+ }?>
diff --git a/frontend/views/option/update.php b/frontend/views/option/update.php
index 35b6600..1bb652d 100644
--- a/frontend/views/option/update.php
+++ b/frontend/views/option/update.php
@@ -7,20 +7,15 @@ use yii\helpers\Html;
$this->title = Yii::t('app', 'Update {modelClass}: ', [
'modelClass' => 'Option',
-]) . ' ' . $models[\Yii::$app->request->get('id')]->name;
+]) . ' ' . $forms[0]['models'][\Yii::$app->request->get('id')]->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Options'), 'url' => ['index']];
-$this->params['breadcrumbs'][] = ['label' => $models[\Yii::$app->request->get('id')]->name, 'url' => ['view', 'id' => $models[\Yii::$app->request->get('id')]->option_id]];
+$this->params['breadcrumbs'][] = ['label' => $forms[0]['models'][\Yii::$app->request->get('id')]->name, 'url' => ['view', 'id' => $forms[0]['models'][\Yii::$app->request->get('id')]->option_id]];
$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
?>
-
= Html::encode($this->title) ?>
-
- = $this->render('_form_edit', [
- 'models' => $models,
- 'modellang' => $modellang,
- 'modeldb' => $modeldb,
- 'model_id' => $model_id
- ]) ?>
+ render('_form_edit', $oneform);
+ }?>
--
libgit2 0.21.4