$mask_subdivision_code,
'value' => $contractor->subdivision_code,
'name' => 'approve_contractor_subdivision_code',
'options' => [
'class' => 'form-control'
],
]
);?>
Yii::$app->language,
'class' => 'form-control',
'data' => ArrayHelper::map([$contractor->location], 'code', 'fullname'),
'value' => $contractor->location_code,
'name' => "approve_contractor_location_code",
'options' => [
'placeholder' => Yii::t(
'common/widgets/contractor-field',
'Подпись пустого значения выпадающего списка для поля "location_code" формы "Контрагент": `Нет города`'
),
'id' => ContractorField::getIdentifier($model, "approve_{$attribute}_location_code", $keynum),
],
'readonly' => false,
'disabled' => false,
'pluginOptions' => [
'placeholder' => Yii::t(
'abiturient/questionary/block-address-data',
'Подпись пустого значения выпадающего списка для поля "location_code" формы "Контрагент": `Нет города`'
),
'loadingText' => Yii::t(
'common/widgets/contractor-field',
'Подпись загружающегося поля "location_code" формы "Контрагент": `Загрузка ...`'
),
'allowClear' => true,
'multiple' => false,
'ajax' => [
'url' => Url::to(['/contractor/location']),
'method' => 'post',
'delay' => '500',
'dataType' => 'json',
'data' => new JsExpression("function(params) {
return {
q:params.term,
page: params.page || 1
};
}")
],
'dropdownParent' => "#{$approve_block_id}"
],
'pluginEvents' => [
'depdrop:change' => "
function(event, id, value, count) {
$(this).prop('disabled', false);
}
"
]
]
); ?>
location_not_found, [
'label' => $contractor->getAttributeLabel('location_not_found'),
'class' => 'contractor-location-not-found',
'data' => [
'block-id' => $approve_block_id
]
]); ?>