title = 'Настройка скан-копий'; $additionalParamsForScanTable = [ 'id', 'name', [ 'attribute' => 'related_entity', 'value' => 'relatedTitle', ], [ 'attribute' => 'required', 'value' => 'requiredLabel', ], [ 'attribute' => 'hidden', 'value' => 'hiddenLabel', ], [ 'attribute' => 'allow_delete_file_after_app_approve', 'value' => 'allowDeleteFileLabel', ], [ 'attribute' => 'allow_add_new_file_after_app_approve', 'value' => 'allowAddNewFileLabel', ], ]; ?> session->get('scans-msg'); if (isset($scans_msg)) : ?>

session->get('scans-error'); if (isset($scans_error)) : ?>

Обнаружены конфликты при определении типов скан-копий документов. Пожалуйста, укажите корректный тип документа на основании существующих скан-копий документов поступающих.

session->get('fileError'); if (isset($fileErr)) : ?>

$campaign) : ?>
" id="">
$type) : ?>
$type])); ?>
'btn btn-success']) ?>
true, 'headerContainer' => ['class' => 'thead-light'], 'tableOptions' => ['class' => 'table-sm'], 'striped' => false, 'summary' => false, 'pager' => [ 'firstPageLabel' => '<<', 'prevPageLabel' => '<', 'nextPageLabel' => '>', 'lastPageLabel' => '>>', ], 'dataProvider' => new ActiveDataProvider([ 'query' => $conflicts->andWhere(['attachment_type_id' => $type]), ]), 'columns' => [ 'id', 'questionary_id', 'application_id', 'file', [ 'attribute' => 'id', 'label' => 'Действия', 'format' => 'raw', 'value' => function ($model) { $links = Html::a(' Скачать', Url::toRoute(['download', 'id' => $model->id]), ['class' => 'btn btn-link']); return Html::tag('div', $links, ['class' => 'd-flex flex-column']); } ] ], ]) ?>

'sort-scan-form', 'action' => 'set-scan-sort', 'options' => ['class' => 'form-inline']]); $items = [ '0' => 'не сортировать', '1' => 'сортировать по алфавиту', '2' => 'по ID', '3' => 'как в интерфейсе администратора' ]; $params = [ 'prompt' => 'Выберите сортировку по умолчанию...', 'class' => 'form-control', ]; ?>
'btn btn-success']) ?>

Скан-копии

Добавить скан-копию true, 'headerContainer' => ['class' => 'thead-light'], 'tableOptions' => ['class' => 'table-sm'], 'striped' => false, 'summary' => false, 'pager' => [ 'firstPageLabel' => '<<', 'prevPageLabel' => '<', 'nextPageLabel' => '>', 'lastPageLabel' => '>>', ], 'dataProvider' => $scansDataProvider, 'options' => ['id' => 'scan-copy'], 'rowOptions' => function ($model) { return ['style' => 'cursor: pointer;']; }, 'columns' => array_merge( $additionalParamsForScanTable, [[ 'class' => ActionColumn::class, 'template' => '{update} {restore} {delete}', 'contentOptions' => ['class' => 'actions'], 'buttons' => [ 'restore' => function ($url, $model) { if (!$model->hidden) { return ''; } return Html::a('', ['/scan/restore', 'scan_id' => $model->id], [ 'title' => 'Восстановить', 'data-confirm' => 'Вы уверены что хотите вернуть из архива эту скан-копию?', 'data-method' => 'post', ]); } ], ]] ), ]); ?>

Скан-копии для индивидуальных достижений

Добавить скан-копию И.Д. true, 'headerContainer' => ['class' => 'thead-light'], 'tableOptions' => ['class' => 'table-sm'], 'striped' => false, 'summary' => false, 'pager' => [ 'firstPageLabel' => '<<', 'prevPageLabel' => '<', 'nextPageLabel' => '>', 'lastPageLabel' => '>>', ], 'dataProvider' => $iaDocTypes, 'options' => ['id' => 'ia-scan-copy'], 'rowOptions' => function ($model) { return ['style' => 'cursor: pointer;']; }, 'columns' => [ 'id', 'documentDescription', [ 'attribute' => 'scan_required', 'value' => 'requiredLabel', ], [ 'label' => 'Приемная кампания', 'attribute' => 'campaign.name', 'value' => 'campaign.name', ], [ 'label' => 'Связанная сущность', 'attribute' => 'availableDocumentTypeFilterRef.0.reference_name', 'value' => 'availableDocumentTypeFilterRef.0.reference_name', ], [ 'class' => ActionColumn::class, 'template' => '{update} {delete}', 'controller' => 'ia-document-type', 'contentOptions' => ['class' => 'actions'], ] ], ]); ?>

Типы скан-копий из 1С

$campaign) : ?>
true, 'headerContainer' => ['class' => 'thead-light'], 'tableOptions' => ['class' => 'table-sm'], 'striped' => false, 'summary' => false, 'pager' => [ 'firstPageLabel' => '<<', 'prevPageLabel' => '<', 'nextPageLabel' => '>', 'lastPageLabel' => '>>', ], 'dataProvider' => new ActiveDataProvider([ 'query' => AttachmentType::find() ->where(['from1c' => true]) ->joinWith('admissionCampaignRef admission_campaign_ref') ->andWhere(['admission_campaign_ref.reference_uid' => $campaign->referenceType->reference_uid]) ->andWhere(['is_using' => true]) ->orderBy('custom_order'), 'pagination' => false ]), 'layout' => "{items}\n{pager}", 'rowOptions' => function ($model) { return ['style' => 'cursor: pointer;']; }, 'columns' => array_merge( $additionalParamsForScanTable, [[ 'class' => ActionColumn::class, 'contentOptions' => ['class' => 'actions'], 'template' => '{update}', ]] ), ]); ?>
registerJs($js,);