Skip to content

Commit

Permalink
Merge pull request #225 from marc7000/feature/form-layout
Browse files Browse the repository at this point in the history
added "formLayout" property
  • Loading branch information
schmunk42 committed Mar 15, 2018
2 parents 0c5ffe8 + 0b27bf7 commit b562494
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/BatchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ class BatchController extends Controller

public $crudIndexGridClass = 'yii\\grid\\GridView';

public $crudFormLayout = 'horizontal';

/**
* @var bool indicates whether to generate ActiveQuery for the ActiveRecord class
*/
Expand Down Expand Up @@ -292,6 +294,7 @@ public function options($id)
'crudBaseControllerClass',
'crudAccessFilter',
'crudTemplate',
'crudFormLayout'
]
);
}
Expand Down Expand Up @@ -435,6 +438,7 @@ public function actionCruds()
'template' => $this->crudTemplate,
'indexWidgetType' => $this->crudIndexWidgetType,
'indexGridClass' => $this->crudIndexGridClass,
'formLayout' => $this->crudFormLayout,
];
$route = 'gii/giiant-crud';
$app = \Yii::$app;
Expand Down

0 comments on commit b562494

Please sign in to comment.