regulation->isFileContent()) {
$link = Html::a($regulation->regulation->name, Url::to(['/site/download-regulation-file', 'id' => $regulation->regulation->id]), [
'download' => true,
]);
} elseif ($regulation->regulation->isHTMLContent()) {
$link = "
regulation->id}\">{$regulation->regulation->name}";
} else {
$link = Html::a($regulation->regulation->name, $regulation->regulation->content_link, [
'target' => '_blank'
]);
}
echo Html::activeHiddenInput($regulation, "[$key]regulation_id");
if ($regulation->regulation->confirm_required) {
if (isset($form)) {
echo $form->field($regulation, "[$key]is_confirmed", [
'options' => [
'style' => 'margin-bottom: 0'
]
])->checkbox([
'id' => "Regulation$key",
'label' => $regulation->regulation->before_link_text . ' ' . $link,
'uncheckValue' => null,
'disabled' => $isReadonly
]);
} else {
echo Html::activeCheckbox($regulation, "[$key]is_confirmed", [
'id' => "Regulation$key",
'label' => false,
'options' => [
'style' => 'margin-bottom: 0'
],
'disabled' => $isReadonly
]);
echo "
";
}
} else {
echo "
";
} ?>
regulation->isHTMLContent()) : ?>
= $regulation->regulation->content_html ?>
regulation->attachmentType !== null) : ?>
getAttachmentCollection();
$hasPassedApplication = false;
if (isset($attachment->application) && $application = $attachment->application) {
$hasPassedApplication = $application->hasPassedApplication();
} ?>
= $this->render('_attachment', [
'attachment' => $regulation->getAttachmentCollection(),
'isReadonly' => $isReadonly,
'hasPassedApplication' => $hasPassedApplication,
'performRegulation' => true,
]); ?>