Esempio n. 1
0
 /**
  * Lists all Priority models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new PrioritySearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Esempio n. 2
0
            <div>
                <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>
            </div>

            <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