From: marina Date: Mon, 26 May 2025 06:36:57 +0000 (+0300) Subject: ERP-417 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=28ecd8202fd7f50ddd4f7b5cb97974b107a9aff6;p=erp24_rep%2Fyii-erp24%2F.git ERP-417 --- diff --git a/erp24/views/write_offs_erp/view.php b/erp24/views/write_offs_erp/view.php index 15c153a0..dea25930 100644 --- a/erp24/views/write_offs_erp/view.php +++ b/erp24/views/write_offs_erp/view.php @@ -136,18 +136,18 @@ $this->registerCssFile('/css/write-offs-erp.css', ['position' => \yii\web\View:: $dataTable .= ''; $images = $product->imagesWriteOffsErp; if (!empty($images)) { - $forWidget = true; // или false в зависимости от вашей логики - if ($forWidget) { - $dataTable .= ''; - } else { - foreach ($images as $image) { - $dataTable .= Html::img($image->url, ['style' => 'max-width: 100px; margin: 5px;']); - } + $dataTable .= '
'; + foreach ($images as $image) { + $dataTable .= Html::a( + Html::img($image->url, ['style' => 'max-width: 100px; max-height: 100px;']), + $image->url, + [ + 'data-fancybox' => 'gallery', + 'data-caption' => $product->name + ] + ); } + $dataTable .= '
'; } $dataTable .= '';