language; $hasCorrectCitizenship = BachelorResultCentralizedTesting::hasCorrectCitizenship($application); $enableDatePickerForExam = ArrayHelper::getValue($application, 'type.allow_pick_dates_for_exam', false); $canChangeDateExamFrom1C = ArrayHelper::getValue($application, 'type.can_change_date_exam_from_1c', false); EgeResultAsset::register($this); if (!isset($useCurrentYearAsDefault)) { $useCurrentYearAsDefault = true; } if (!isset($attachments)) { $attachments = []; } if (!isset($regulations)) { $regulations = []; } $formId = ''; $isExternalForm = true; if (empty($form)) { $options = []; if ($attachments || $regulations) { $options = ['enctype' => 'multipart/form-data']; } $formId = 'ege-attachment'; $isExternalForm = false; $form = ActiveForm::begin([ 'id' => $formId, 'method' => 'POST', 'options' => $options, 'action' => Url::toRoute(['bachelor/ege-save-result', 'id' => $application->id]), ]); } ?> readonly || $result->hasEnlistedBachelorSpecialities(); $index = $result->id; $panelEgeId = "panel-ege-id-{$index}"; $result->_application = $application; $isExam = $result->isExam(); if ($useCurrentYearAsDefault && empty($result->egeyear)) { $result->egeyear = (string)date('Y'); } ?>
hasChildren()) : ?>
getAttributeLabel('cget_discipline_id') ?>
"cgetDiscipline->reference_name} ({$result->cgetChildDiscipline->reference_name})" ?> "
getAttributeLabel('cget_discipline_id') ?>
"cgetDiscipline->reference_name ?>"
getAttributeLabel('cget_exam_form_id') ?>
"cgetExamForm->reference_name ?>"
field($result, "[{$index}]reason_for_exam_id") ->widget( Select2::class, [ 'language' => $appLanguage, 'data' => $result->reasonForExamList, 'options' => [ 'disabled' => $readOnly, 'placeholder' => Yii::t( 'abiturient/bachelor/ege/ege-result-form', 'Подпись пустого значения для поля "reason_for_exam_id" таблицы результатов ВИ; на стр. ВИ: `Выберите ...`' ), ], 'pluginOptions' => [ 'allowClear' => true, ], ] ); if ($readOnly) { echo $form->field($result, "[{$index}]reason_for_exam_id")->hiddenInput()->label(false); } ?>
type->allow_language_selection) : ?>
field($result, "[{$index}]language_id") ->widget( Select2::class, [ 'language' => $appLanguage, 'data' => $result->getLanguageList($result->language_id), 'options' => [ 'disabled' => $readOnly, 'placeholder' => Yii::t( 'abiturient/bachelor/ege/ege-result-form', 'Подпись пустого значения для поля "language_id" таблицы результатов ВИ; на стр. ВИ: `Выберите ...`' ), ], 'pluginOptions' => [ 'allowClear' => true, ], ] ); if ($readOnly) { echo $form->field($result, "[{$index}]language_id")->hiddenInput()->label(false); } ?>
type->allow_special_requirement_selection) : ?>
field($result, "[{$index}]special_requirement_ref_id") ->widget( Select2::class, [ 'language' => $appLanguage, 'data' => $result->specialRequirementList, 'options' => [ 'disabled' => $readOnly, 'placeholder' => Yii::t( 'abiturient/bachelor/ege/ege-result-form', 'Подпись пустого значения для поля "special_requirement_ref_id" таблицы результатов ВИ; на стр. ВИ: `Выберите ...`' ), ], 'pluginOptions' => [ 'allowClear' => true, ], ] ); if ($readOnly) { echo $form->field($result, "[{$index}]special_requirement_ref_id")->hiddenInput()->label(false); } ?>
field($result, "[{$index}]egeyear") ->widget( Select2::class, [ 'language' => $appLanguage, 'data' => $result->years, 'options' => [ 'disabled' => $readOnly, 'placeholder' => Yii::t( 'abiturient/bachelor/ege/ege-result-form', 'Подпись пустого значения для поля "egeyear" таблицы результатов ВИ; на стр. ВИ: `Выберите ...`' ), ], 'pluginOptions' => [ 'allowClear' => true, 'dropdownParent' => "#{$panelEgeId}", ], ] ); if ($readOnly) { echo $form->field($result, "[{$index}]egeyear")->hiddenInput()->label(false); } ?>
field($result, "[{$index}]discipline_points") ->textInput([ 'type' => 'number', 'disabled' => $readOnly, ]) ?> field($result, "[{$index}]discipline_points")->hiddenInput()->label(false); } ?>
getOrBuildCentralizedTesting(); $centralizedTestingLabelColumns = Html::tag( 'div', $centralizedTesting->labelForCollapse, ['class' => 'col-11'] ); if (!$centralizedTesting->isNew && !$readOnly) { $url = Url::to(['/bachelor/delete-centralized-testing', 'id' => $centralizedTesting->id, 'app_id' => $application->id]); $centralizedTestingLabelColumns .= Html::tag( 'div', Html::a('', $url, ['class' => 'fa fa-times']), ['class' => 'col-1 d-flex align-items-center justify-content-end'] ); } $centralizedTestingLabel = Html::tag( 'div', $centralizedTestingLabelColumns, ['class' => 'row'] ); $options = ['id' => "collapse-centralized-testing_{$index}"]; if (!$readOnly) { $options['data-form_index'] = $index; $options['data-form_name'] = $centralizedTesting->formName(); } ?> false, 'options' => $options, 'itemToggleOptions' => ['class' => 'btn-block p-0'], 'items' => [ [ 'label' => $centralizedTestingLabel, 'content' => $this->render( '_centralizedTesting', [ 'form' => $form, 'index' => $index, 'disable' => $readOnly, 'centralizedTesting' => $centralizedTesting, ] ), ], ] ]) ?>
status == EgeResult::STATUS_VERIFIED) : ?>
examSchedule ) : ?>
render( '_egeExamDateForm', [ 'form' => $form, 'result' => $result, 'disable' => $readOnly, 'canChangeDateExamFrom1C' => $canChangeDateExamFrom1C, ] ) ?>
hasPassedApplicationWithEditableAttachments(AttachmentType::RELATED_ENTITY_EGE)) ) : ?> $formId, 'attachmentConfigArray' => [ 'application' => $application, 'items' => $attachments, 'isReadonly' => $disable, ], 'regulationConfigArray' => [ 'items' => $regulations, 'form' => $form, 'isReadonly' => $disable, ], ]) ?>
getUseNextStepForwarding()) { $message = Yii::t( 'abiturient/bachelor/ege/competitive-group-entrance-tests', 'Подпись кнопки сохранения результатов ВИ; на стр. ВИ: `Сохранить и перейти к следующему шагу`' ); } echo Html::submitButton( $message, ['class' => 'btn btn-primary float-right'] ) ?>