settings for tag

This commit is contained in:
2024-11-29 16:54:35 +03:00
parent 0ed97877fd
commit b981ff0c44
5 changed files with 83 additions and 4 deletions

View File

@ -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();