settings for tag
This commit is contained in:
1 parent
0ed97877fd
commit
b981ff0c44
5 files changed
+83
-4
No files matched your search
@@ -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