'modal-md', 'id' => $config['approveModalId'], 'options' => [ 'tabindex' => false, ], 'closeButton' => false, 'title' => Html::tag('h4', Yii::t( 'common/widgets/contractor-field', 'Заголовок модального окна проверки контрагента: `Подтверждение контрагента`' )) . Html::button('', [ 'class' => 'close close-approve-contractor-modal', ]), ]); ?>
id); ?>
'approve_contractor_type_ref_uid', 'value' => $contractor->contractorTypeRef->reference_uid ?? $contractor_type_ref_uid, 'language' => Yii::$app->language, 'data' => ArrayHelper::map(StoredContractorTypeReferenceType::findAll(['archive' => false]), 'reference_uid', 'reference_name'), 'options' => [ 'placeholder' => Yii::t( 'common/widgets/contractor-field', 'Подпись пустого значения выпадающего списка для поля "contractor_id" блока "Контрагент": `Выберите организацию ...`' ), 'id' => ContractorField::getIdentifier($model, "approve_{$attribute}_contractor_type_ref_uid", $keynum), 'class' => 'approve-contractor-type-field', ], 'pluginOptions' => [ 'allowClear' => false, 'multiple' => false, 'dropdownParent' => "#{$approve_block_id}" ] ]); ?>
Необходимо заполнить это поле.
name, [ 'class' => 'form-control' ]); ?>
$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_name, [ 'class' => 'form-control' ]); ?>
location_not_found, [ 'label' => $contractor->getAttributeLabel('location_not_found'), 'class' => 'contractor-location-not-found', 'data' => [ 'block-id' => $approve_block_id ] ]); ?>
'btn btn-primary float-right approve-new-contractor-btn', 'data-found-block-id' => $found_block_id, 'data-approve-block-id' => $approve_block_id, 'data-target-input-id' => $config['selectInputId'], 'data-modal-id' => $config['approveModalId'], 'data-entity-class' => get_class($model), 'data-entity-attribute' => $attribute, 'data-entity-id' => $model->getPrimaryKey(), ] ); ?>

'approve_contractor_id', 'language' => Yii::$app->language, 'data' => [], 'options' => [ 'placeholder' => Yii::t( 'common/widgets/contractor-field', 'Подпись пустого значения выпадающего списка для поля "contractor_id" блока "Контрагент": `Выберите организацию ...`' ), 'id' => $config['contractorApproveSelectId'] ?? ContractorField::getIdentifier($model, 'approve_contracor_id', $keynum), ], 'pluginOptions' => [ 'allowClear' => false, 'multiple' => false, 'ajax' => [ 'url' => Url::to(['/contractor/search']), 'method' => 'post', 'delay' => '500', 'dataType' => 'json', 'data' => new JsExpression("function(params) { var type = $('#" . $contractor_type_input_id . "').val(); return { q:params.term, contractor_type:type, page: params.page || 1 }; }") ], 'dropdownParent' => "#{$approve_block_id}", ] ]); ?>
'btn btn-primary float-right bind-existing-contractor-btn', 'data-found-block-id' => $found_block_id, 'data-bind-block-id' => $bind_block_id, 'data-from-input-id' => $config['contractorApproveSelectId'] ?? ContractorField::getIdentifier($model, 'approve_contracor_id', $keynum), 'data-target-input-id' => $config['selectInputId'], 'data-modal-id' => $config['approveModalId'], ] ); ?>