= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'province')->dropDownList($data, ['id' => 'province-id', 'prompt' => '请选择']); ?>
= $form->field($model, 'city')->widget(DepDrop::classname(), [
'options' => ['id' => 'city-id', 'prompt' => $model->city],
'data' => $cityList,
'pluginOptions' => [
'depends' => ['province-id'],
'placeholder' => '请选择成市',
'url' => Url::to(['/taking-site/city'])
],
'pluginEvents' => [
"depdrop:change" => "function(event, id, value, count) { log(id); log(value); log(count); }",
]
]) ?>
= $form->field($model, 'area')->widget(DepDrop::classname(), [
'options' => ['prompt' => $model->area],
'data' => $areaList,
'pluginOptions' => [
'depends' => ['city-id'],
'placeholder' => '请选择县区',
'url' => Url::to(['/taking-site/area'])
]
]) ?>
= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?>