getIndex(); $model = $attachment->getModelEntity(); $performRegulation = $performRegulation ?? false; $isRequired = $isRequired ?? (!$isReadonly && $attachment->isRequired()); $container_id = "attachment-{$attachment->attachmentType->id}"; $minify = $minify ?? false; $addNewFile = true; $canDeleteFile = true; if ( $isReadonly && ( $hasPassedApplication || ( isset($attachment->questionary) && $attachment->questionary->hasApprovedApps() ) ) ) { $isReadonly = false; $addNewFile = ArrayHelper::getValue($attachment, 'attachmentType.allow_add_new_file_after_app_approve', false); $canDeleteFile = ArrayHelper::getValue($attachment, 'attachmentType.allow_delete_file_after_app_approve', false); if (!$addNewFile && !$canDeleteFile) { $addNewFile = true; $isReadonly = true; $canDeleteFile = true; } } ?>
= Yii::t( 'abiturient/attachment-widget', 'Тело ошибки виджета сканов: `Ошибка:`' ); ?>
getAttachmentsErrors() as $fileName => $errors) : ?>= $fileName ?>