<div class="job-form"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'title')->textarea(['rows' => 1]); ?> <?php echo $form->field($model, 'description')->textarea(['rows' => 4]); ?> <?php echo $form->field($model, 'org_id')->dropDownList(\app\models\Organization::getUserOrganizations(Yii::$app->user->id)); ?> <?php echo $form->field($model, 'location')->textarea(['rows' => 1]); ?> <?php echo $form->field($model, 'start_date')->widget(DatePicker::classname(), ['model' => $model, 'attribute' => 'start_date', 'attribute2' => 'end_date', 'options' => ['placeholder' => 'Start date'], 'options2' => ['placeholder' => 'End date'], 'type' => DatePicker::TYPE_RANGE, 'form' => $form, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'job_type')->dropDownList(Lookup::items('JobType')); ?> <?php