isNewRecord) : ?>
= $this->render(
'@abiturientViews/_document_check_status_render',
compact(['model'])
) ?>
= Select2::widget([
'language' => $appLanguage,
'name' => "kind-filter-{$number}",
'data' => ArrayHelper::map(
StoredOlympicKindReferenceType::find()
->active()
->andWhere(["is_folder" => false])
->orderBy("{$tnStoredOlympicKindReferenceType}.reference_name")
->all(),
'reference_name',
'reference_name'
),
'options' => [
'disabled' => $isReadOnly,
'placeholder' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-olympiad',
'Подпись пустого значения для поля "kind"; модального окна БВИ на странице льгот: `Выберите ...`'
),
'id' => "kind-filter-{$number}",
],
'pluginOptions' => [
'allowClear' => true,
'multiple' => false,
'dropdownParent' => "#{$wrapper_id}",
],
]); ?>
= Select2::widget([
'language' => $appLanguage,
'name' => "class-filter-{$number}",
'data' => ArrayHelper::map(
StoredOlympicClassReferenceType::find()
->active()
->andWhere(["is_folder" => false])
->orderBy("{$tnStoredOlympicClassReferenceType}.reference_name")
->all(),
'reference_uid',
'reference_name'
),
'options' => [
'disabled' => $isReadOnly,
'placeholder' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-olympiad',
'Подпись пустого значения для поля "class"; модального окна БВИ на странице льгот: `Выберите ...`'
),
'id' => "class-filter-{$number}",
],
'pluginOptions' => [
'allowClear' => true,
'multiple' => false,
'dropdownParent' => "#{$wrapper_id}",
],
]); ?>
= Html::input(
'number',
"year-filter-{$number}",
null,
[
'disabled' => $isReadOnly,
'id' => "year-filter-{$number}",
'class' => 'form-control',
]
); ?>
= Select2::widget([
'language' => $appLanguage,
'name' => "profile-filter-{$number}",
'data' => ArrayHelper::map(
StoredOlympicProfileReferenceType::find()
->active()
->andWhere(["is_folder" => false])
->orderBy("{$tnStoredOlympicProfileReferenceType}.reference_name")
->all(),
'reference_uid',
'reference_name'
),
'options' => [
'disabled' => $isReadOnly,
'placeholder' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-olympiad',
'Подпись пустого значения для поля "profile"; модального окна БВИ на странице льгот: `Выберите ...`'
),
'id' => "profile-filter-{$number}",
],
'pluginOptions' => [
'allowClear' => true,
'multiple' => false,
'dropdownParent' => "#{$wrapper_id}",
],
]); ?>
= $form->field($model, 'olympiad_id')
->widget(
DepDrop::class,
[
'language' => $appLanguage,
'type' => DepDrop::TYPE_SELECT2,
'options' => [
'disabled' => $isReadOnly,
'placeholder' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-olympiad',
'Подпись пустого значения для поля "olympiad_id"; модального окна БВИ на странице льгот: `Выберите ...`'
),
'id' => "first_drop_oly_{$number}"
],
'select2Options' => ['pluginOptions' => [
'allowClear' => true,
'multiple' => false,
'dropdownParent' => "#{$wrapper_id}",
]],
'data' => $items,
'pluginOptions' => [
'placeholder' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-olympiad',
'Подпись пустого значения для поля "olympiad_id"; модального окна БВИ на странице льгот: `Выберите ...`'
),
'loadingText' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-olympiad',
'Подпись загружаемого значения для поля "olympiad_id"; модального окна БВИ на странице льгот: `Загрузка ...`'
),
'depends' => [
"kind-filter-{$number}",
"class-filter-{$number}",
"year-filter-{$number}",
"profile-filter-{$number}",
],
'url' => Url::to(['/site/filter-olympiads', 'app_id' => $id]),
]
]
); ?>
= $form->field($model, 'special_mark_id')
->widget(
DepDrop::class,
[
'language' => $appLanguage,
'type' => DepDrop::TYPE_SELECT2,
'options' => [
'disabled' => $isReadOnly,
'placeholder' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-olympiad',
'Подпись пустого значения для поля "special_mark_id"; модального окна БВИ на странице льгот: `Выберите ...`'
),
'id' => "second_drop_oly_{$number}"
],
'select2Options' => ['pluginOptions' => [
'allowClear' => true,
'multiple' => false,
'dropdownParent' => "#{$wrapper_id}",
]],
'data' => $itemsOlymp,
'pluginOptions' => [
'placeholder' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-olympiad',
'Подпись пустого значения для поля "special_mark_id"; модального окна БВИ на странице льгот: `Выберите ...`'
),
'loadingText' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-olympiad',
'Подпись загружаемого значения для поля "special_mark_id"; модального окна БВИ на странице льгот: `Загрузка ...`'
),
'depends' => ["first_drop_oly_{$number}"],
'url' => Url::to(['site/olymp-type', 'app_id' => $id, 'id' => $model->id]),
]
]
); ?>
= $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-olympiad',
'Подпись пустого значения для поля "document_type_id"; модального окна БВИ на странице льгот: `Выберите ...`'
),
'id' => "third_drop_oly_{$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-olympiad',
'Подпись пустого значения для поля "document_type_id"; модального окна БВИ на странице льгот: `Выберите ...`'
),
'loadingText' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-olympiad',
'Подпись загружаемого значения для поля "document_type_id"; модального окна БВИ на странице льгот: `Загрузка ...`'
),
'depends' => ["second_drop_oly_{$number}"],
'url' => Url::to(['site/doc-type-olympiads', 'id' => $id]),
]
]
); ?>
$form,
'model' => $model,
'disabled' => $isReadOnly,
'attribute' => 'contractor_id',
'notFoundAttribute' => 'notFoundContractor',
'keynum' => $number,
'need_subdivision_code' => false,
'default_contractor_type_guid_code' => 'contractor_type_olymp_guid',
'labels' => [
'contractor_name' => $model->getAttributeLabel('contractor_id'),
],
'application' => $application,
'options' => [
'selectInputId' => "olympiad-contractor_id_{$number}",
'contractorTitleInputId' => "olympiad-contractor_name_{$number}",
'contractorSubdivisionCodeInputId' => "olympiad-contractor_subdivision_code_{$number}",
'contractorLocationCodeInputId' => "olympiad-contractor_location_code_{$number}",
'notFoundCheckboxInputId' => "olympiad-contractor_not_found_{$number}",
'data' => [
'one-s-attribute-name' => RulesProviderByDocumentType::IssuedBy
]
]
]); ?>
= $form->field($model, 'document_series')
->textInput([
'data' => ['one-s-attribute-name' => RulesProviderByDocumentType::DocumentSeries],
'disabled' => $isReadOnly,
]); ?>
= $form->field($model, 'document_number')
->textInput([
'data' => ['one-s-attribute-name' => RulesProviderByDocumentType::DocumentNumber],
'disabled' => $isReadOnly,
]); ?>
= $form->field($model, 'document_date')
->widget(
DatePickerMaskedWidget::class,
[
'inline' => false,
'language' => $appLanguage,
'template' => '{input}{addon}',
'clientOptions' => [
'clearBtn' => true,
'endDate' => '-1d',
'weekStart' => '1',
'autoclose' => true,
'todayBtn' => 'linked',
'format' => 'dd.mm.yyyy',
'calendarWeeks' => 'true',
'todayHighlight' => 'true',
'orientation' => 'top left',
],
'options' => [
'disabled' => $isReadOnly,
'autocomplete' => 'off',
'id' => "dp_ol_{$number}",
'data' => ['one-s-attribute-name' => RulesProviderByDocumentType::IssuedDate],
],
'maskOptions' => ['alias' => 'dd.mm.yyyy']
]
); ?>
attachmentCollection->isRequired();
?>
= $this->render(
'@abiturient/views/partial/fileInput/_fileInput',
[
'form' => $form,
'isReadonly' => $isReadOnly,
'addNewFile' => !$isReadOnly,
'canDeleteFile' => !$isReadOnly,
'required' => $file_required,
'attachmentCollection' => $model->attachmentCollection,
'label' => Yii::t(
'abiturient/bachelor/accounting-benefits/modal-olympiad',
'Подпись области прикрепления сканов; модального окна БВИ на странице льгот: `Скан-копии подтверждающего документа`'
),
]
); ?>
= 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;']
); ?>
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]); ?>