addition fields images

This commit is contained in:
Leorne
2019-12-06 11:06:21 +03:00
parent 5cff041241
commit 9db4ea8abd
3 changed files with 63 additions and 8 deletions

View File

@ -46,10 +46,7 @@ $this->params['breadcrumbs'][] = $this->title;
'attribute' => 'value',
'format' => 'raw',
'value' => function ($model) {
if ($model->type_file == 'file') {
return $model->value . ' (' . Html::a('Скачать', $model->value, ['target' => '_blank', 'download' => 'download']) . ')';
}
return $model->value;
return $model->getValue();
}
],
],