settings for tag
This commit is contained in:
@ -51,11 +51,11 @@ class PhotoModule extends Module
|
||||
{
|
||||
if (isset($model->id)) {
|
||||
$value = PhotoService::getByEntity($entity, $model->id);
|
||||
echo Html::img($value, ['width' => '200px']);
|
||||
}
|
||||
echo Html::img($value, ['width' => '200px']);
|
||||
$input = FileBuilder::build("image", [
|
||||
'class' => 'form-control',
|
||||
'value' => $value,
|
||||
'value' => $value ?? '',
|
||||
]);
|
||||
$input->setLabel("Фото");
|
||||
$input->create()->render();
|
||||
|
Reference in New Issue
Block a user