:</b> <?php echo City::findOne($profile->city_id)->name; ?> </p> <p><b><?php echo $profile->getAttributeLabel('address'); ?> :</b> <?php echo $profile->address; ?> </p> <p><b><?php echo $profile->getAttributeLabel('timezone_id'); ?> :</b> <?php echo Timezone::findOne($profile->timezone_id)->name; ?> </p> <p><b><?php echo $profile->getAttributeLabel('date_of_birth'); ?> :</b> <?php echo $profile->date_of_birth; ?> </p> </div> <?php Pjax::end(); ?> <div><button id="modal-button-update" class="btn btn-primary" value="/update?id=<?php
echo $form->field($model, 'country_id')->dropdownList(BasicProfile::getCountryList(), ['prompt' => 'Select Country', 'onchange' => '$.post("/city-list?id=' . '"+$(this).val(), function (data) { $("select#country-cities-list").html(data); $("#country-cities-list").prop("disabled", false); });']); ?> <?php echo $form->field($model, 'city_id')->dropdownList(BasicProfile::getCityList(), ['id' => 'country-cities-list', 'disabled' => true, 'prompt' => 'Select City']); ?> <?php echo $form->field($model, 'address')->textArea(['maxlength' => true]); ?> <?php echo $form->field($model, 'timezone_id')->dropdownList(ArrayHelper::map(Timezone::find()->all(), 'id', 'name'), ['prompt' => 'Select Timezone']); ?> <?php echo $form->field($model, 'date_of_birth')->widget(DatePicker::className(), ['inline' => true, 'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <div class="form-group"> <?php echo Html::submitButton('Update', ['class' => 'btn btn-success']); ?> </div> <?php ActiveForm::end(); ?>