echo $form->field($model, 'start_time')->input('datetime'); ?> <?php echo $form->field($model, 'end_time')->input('datetime'); ?> <?php echo $form->field($model, 'description')->textarea(['rows' => 6]); ?> <?php echo $form->field($model, 'summary')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'location_id')->dropDownList(Location::getList()); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
<?php $form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']); ?> <div class="col-sm-4 col-md-4 col-lg-4"> <?php echo $form->field($model, 'subcategory_id')->label('Subcategory')->dropDownList(['' => ''] + Subcategory::getList()); ?> <?php echo $form->field($model, 'user_id')->label('User')->dropDownList(['' => ''] + User::getList()); ?> <?php echo $form->field($model, 'location_id')->label('Location')->dropDownList(['' => ''] + Location::getList()); ?> <?php echo $form->field($model, 'title'); ?> <?php echo $form->field($model, 'description'); ?> <?php echo $form->field($model, 'status')->dropDownList(['' => '', $model::STATUS_ACTIVE => 'Active', $model::STATUS_INACTIVE => 'Inactive']); ?> </div> <div class="col-sm-6 col-md-6 col-lg-6">
?> <label>Email*</label><?php echo $form->field($userModel, 'email')->label(false)->textInput(['class' => 'loginInput']); ?> <label>Phone*</label><?php echo $form->field($userModel, 'phone')->label(false)->textInput(['class' => 'loginInput']); ?> <?php } ?> <label>State*</label><div id="sortContainer"> <div tabindex="0" class="onclick-menu"> <ul class="onclick-menu-content"> <?php $locations = Location::getList(); ?> <?php foreach ($locations as $id => $title) { ?> <li data-field="ad-location_id" data-id="<?php echo $id; ?> "><?php echo $title; ?> </li></a> <?php } ?> </ul>