isNewRecord) : ?>
= $this->render(
'@abiturientViews/_document_check_status_render',
compact(['model'])
) ?>
= $form->field($model, 'code')
->dropDownList($items, [
'disabled' => $isReadOnly,
'prompt' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-benefits',
'Подпись пустого значения для поля "code"; модального окна льгот на странице льгот: `Выберите ...`'
),
'id' => $isReadOnly ? "not_lgot_id_{$number}" : "lgot_id_{$number}",
'class' => 'lgot-code',
'data-number' => $number
]); ?>
= $form->field($model, 'document_type_id')
->widget(
DepDrop::class,
[
'language' => $appLanguage,
'type' => DepDrop::TYPE_SELECT2,
'options' => [
'disabled' => $isReadOnly,
'placeholder' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-benefits',
'Подпись пустого значения для поля "document_type_id"; модального окна льгот на странице льгот: `Выберите ...`'
),
'id' => "second_drop_{$number}",
'data' => [
'document_type_input' => 1
],
],
'select2Options' => [
'pluginOptions' => [
'allowClear' => true,
'multiple' => false,
'dropdownParent' => "#{$wrapper_id}",
]
],
'data' => $itemsDoc,
'pluginOptions' => [
'placeholder' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-benefits',
'Подпись пустого значения для поля "document_type_id"; модального окна льгот на странице льгот: `Выберите ...`'
),
'loadingText' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-benefits',
'Подпись загружаемого значения для поля "document_type_id"; модального окна льгот на странице льгот: `Загрузка ...`'
),
'depends' => ["lgot_id_{$number}"],
'url' => Url::to(['site/doc-type', 'id' => $id]),
]
]
); ?>
= $form->field($model, 'document_series')
->textInput([
'disabled' => $isReadOnly,
'data' => [
'one-s-attribute-name' => RulesProviderByDocumentType::DocumentSeries
],
]); ?>
= $form->field($model, 'document_number')
->textInput([
'disabled' => $isReadOnly,
'data' => [
'one-s-attribute-name' => RulesProviderByDocumentType::DocumentNumber
],
]); ?>
= $form->field($model, 'document_date')
->widget(
DatePickerMaskedWidget::class,
[
'inline' => false,
'language' => $appLanguage,
'template' => '{input}{addon}',
'clientOptions' => [
'clearBtn' => true,
'weekStart' => '1',
'autoclose' => true,
'todayBtn' => 'linked',
'format' => 'dd.mm.yyyy',
'calendarWeeks' => 'true',
'todayHighlight' => 'true',
'orientation' => 'top left',
'endDate' => '-1d',
],
'options' => [
'disabled' => $isReadOnly,
'autocomplete' => 'off',
'id' => "dp_bf_{$number}",
'data' => [
'one-s-attribute-name' => RulesProviderByDocumentType::IssuedDate
],
],
'maskOptions' => [
'alias' => 'dd.mm.yyyy'
]
]
); ?>
$form,
'model' => $model,
'disabled' => $isReadOnly,
'attribute' => 'contractor_id',
'notFoundAttribute' => 'notFoundContractor',
'keynum' => $number,
'need_subdivision_code' => false,
'default_contractor_type_guid_code' => 'contractor_type_pref_guid',
'labels' => [
'contractor_name' => $model->getAttributeLabel('contractor_id'),
],
'need_approve' => $has_pending,
'application' => $application,
'options' => [
'selectInputId' => "benefit-contractor_id_{$number}",
'contractorTitleInputId' => "benefit-contractor_name_{$number}",
'contractorSubdivisionCodeInputId' => "benefit-contractor_subdivision_code_{$number}",
'contractorLocationCodeInputId' => "benefit-contractor_location_code_{$number}",
'notFoundCheckboxInputId' => "benefit-contractor_not_found_{$number}",
'data' => [
'one-s-attribute-name' => RulesProviderByDocumentType::IssuedBy
]
]
]); ?>
attachmentCollection->isRequired(); ?>
= $this->render('@abiturient/views/partial/fileInput/_fileInput', [
'attachmentCollection' => $model->attachmentCollection,
'isReadonly' => $isReadOnly,
'required' => $file_required,
'form' => $form,
'addNewFile' => !$isReadOnly,
'canDeleteFile' => !$isReadOnly,
'label' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-benefits',
'Подпись области прикрепления сканов; модального окна льгот на странице льгот: `Скан-копии подтверждающего документа`'
),
]); ?>
= Html::tag(
'span',
Yii::t(
'abiturient/attachment-widget',
'Текст сообщения об максимально допустимом размере файла виджета сканов: `Максимальный размер приложенного файла: {uploadMaxFilesizeString}`',
['uploadMaxFilesizeString' => iniGet::getUploadMaxFilesizeString()]
),
['class' => 'form-text text-muted', 'style' => 'padding-left: 0px;']
); ?>
= Html::tag(
'span',
Yii::t(
'abiturient/attachment-widget',
'Текст перечисляющий доступные форматов для сканов: `Список допустимых форматов файлов: {extensions}`',
['extensions' => Attachment::getExtensionsListForRules()]
),
['class' => 'form-text text-muted', 'style' => 'padding-left: 0px;']
); ?>
= $form->field($model, 'priority_right')
->checkbox([
'id' => "specific_law_{$number}",
'disabled' => $isReadOnly,
]); ?>
= $form->field($model, 'individual_value')
->checkbox([
'id' => "concession_low_{$number}",
'disabled' => $isReadOnly,
]); ?>
configurationManager->getText('global_text_for_submit_tooltip', $application->type ?? null); ?>
= Html::submitButton($buttonName, [
'data-tooltip_title' => $globalTextForSubmitTooltip,
'class' => 'btn btn-primary float-right anti-clicker-btn'
]); ?>
= $form->field($model, 'id_application')->label('')
->hiddenInput(['value' => $id]); ?>
id)) : ?>
= $form->field($model, 'id')->label('')
->hiddenInput(['value' => $model->id]); ?>