<div class="row"> <div class="col-lg-6 col-md-6 col-sm-6"> <?php echo $form->field($model, 'place_of_birth_current')->dropDownList($yesno, ['prompt' => '--Please select--', 'onChange' => 'showBirthPlace($(this).val())']); ?> <?php $places = ['Viwandani' => 'Viwandani', 'Korogocho' => 'Korogocho']; $longspecify = ['Years' => 'Years', 'Months' => 'Months', 'Days' => 'Days']; ?> <span class="placeyes hide"><?php echo $form->field($model, 'place_of_birth')->dropDownList($places, ['prompt' => '--Please select--']); ?> </span> <span class="placeno hide"><?php echo $form->field($model, 'place_of_birth_specify')->dropDownList(app\models\Counties::getcounties(), ['prompt' => '--Please select--']); ?> <?php echo $form->field($model, 'date_of_relocation')->widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd', 'options' => ['class' => 'form-control'], 'clientOptions' => ['changeMonth' => true, 'changeYear' => true, 'maxDate' => 'today']]); ?> <?php echo $form->field($model, 'places_before_relocation')->textarea(['rows' => 2]); ?> </span> <?php echo $form->field($model, 'Longest_time_away')->textInput(['maxlength' => true]); ?>
<div class="col-lg-6 col-md-6 col-sm-6"> <?php echo $form->field($model, 'place_of_birth_current')->dropDownList($yesno, ['prompt' => '--Please select--', 'onChange' => 'showBirthPlace($(this).val())']); ?> <?php $places = ['Viwandani' => 'Viwandani', 'Korogocho' => 'Korogocho']; $longspecify = ['Years' => 'Years', 'Months' => 'Months', 'Days' => 'Days']; ?> <span class="placeyes hide"><?php echo $form->field($model, 'place_of_birth')->dropDownList($places, ['prompt' => '--Please select--']); ?> </span> <span class="placeno hide"> <?php echo $form->field($model, 'place_of_birth_specify')->widget(Select2::classname(), ['data' => app\models\Counties::getcounties(), 'options' => ['placeholder' => 'Start by typing county'], 'pluginOptions' => ['allowClear' => true]]); ?> <?php echo $form->field($model, 'date_of_relocation')->widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd', 'options' => ['class' => 'form-control'], 'clientOptions' => ['changeMonth' => true, 'changeYear' => true, 'maxDate' => 'today']]); ?> <?php echo $form->field($model, 'places_before_relocation')->textarea(['rows' => 2]); ?> </span> <?php echo $form->field($model, 'Longest_time_away')->textInput(['maxlength' => true, 'onChange' => 'skipPlaces($(this).val())']); ?>