title = 'Управление приемными кампаниями'; ?>

Добавить приемную кампанию на портал

true, 'headerContainer' => ['class' => 'thead-light'], 'tableOptions' => ['class' => 'table-sm'], 'striped' => false, 'summary' => false, 'pager' => [ 'firstPageLabel' => '<<', 'prevPageLabel' => '<', 'nextPageLabel' => '>', 'lastPageLabel' => '>>', ], 'dataProvider' => $applicationTypesDataProvider, 'filterModel' => $searchModel, 'rowOptions' => function ($model) { if ($model->archive) { return ['class' => 'table-warning']; } if ($model->stageTwoStarted() && !$model->haveStageOne()) { return ['class' => 'table-success']; } return []; }, 'columns' => [ 'id', 'name', [ 'attribute' => 'campaign_id', 'value' => 'campaignName', ], [ 'class' => EnumColumn::class, 'attribute' => 'campaignArchive', 'value' => function ($model) { if ($model->campaignArchive) { return 'В архиве'; } else { return 'Актуальна'; } }, 'format' => 'raw', 'enum' => [ 0 => 'Актуальна', 1 => 'В архиве' ], 'filter' => [ 0 => 'Актуальна', 1 => 'В архиве' ], ], [ 'class' => ActionColumn::class, 'template' => '{update} {info} {list} {delete} {block} {history-change}', 'buttons' => [ 'update' => function ($url, $model) { if (!$model->archive) { return Html::a('', $url, ['class' => '']); } else { return ''; } }, 'delete' => function ($url, $model) { if (!$model->archive) { return Html::a('', $url, ['title' => 'Удалить', 'aria-label' => 'Удалить', 'data-pjax' => '0', 'data-confirm' => 'Вы уверены, что хотите удалить этот элемент?', 'data-method' => 'post']); } else { return ''; } }, 'info' => function ($url, $model) { if (!$model->archive) { return Html::a('', $url, ['class' => '']); } else { return ''; } }, 'block' => function ($url, $model) { if (!$model->archive) { if (!$model->blocked) { return Html::a(' Запретить работу', $url, ['class' => '']); } else { return Html::a(' Разрешить работу', str_replace('block', 'unblock', $url), ['class' => '']); } } else { return ''; } }, 'history-change' => function ($url, $model) { if (!$model->archive && $model->hasApplicationTypeHistories()) { return Html::a(' История изменений', $url, ['title' => 'Просмотреть историю изменений ПК']); } else { return ''; } }, ] ] ], ]); ?>

Разрешить работу по всем Запретить работу по всем