Example #1
0
 /**
  * Lists all Type models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new TypeSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Example #2
0
            <div>
                <?php 
echo $form->field($model, 'status_id')->dropDownList(ArrayHelper::map(\app\modules\settings\models\StatusSearch::getAll(), 'id', 'title'));
?>
            </div>

            <div>
                <?php 
echo $form->field($model, 'priority_id')->dropDownList(ArrayHelper::map(\app\modules\settings\models\PrioritySearch::getAll(), 'id', 'title'));
?>
            </div>

            <div>
                <?php 
echo $form->field($model, 'type_id')->dropDownList(ArrayHelper::map(\app\modules\settings\models\TypeSearch::getAll(), 'id', 'title'));
?>
            </div>

        </div>

        <div class="col-sm-6">

            <div>
                <?php 
echo $form->field($model, 'alias')->textInput(['maxlength' => true]);
?>
            </div>

            <div>
                <?php