]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-417
authormarina <m.zozirova@gmail.com>
Fri, 23 May 2025 14:14:01 +0000 (17:14 +0300)
committermarina <m.zozirova@gmail.com>
Fri, 23 May 2025 14:14:01 +0000 (17:14 +0300)
erp24/views/write_offs_erp/view.php

index b24e6126b567c9fc6f33b401b148b246f32aa12b..d412aca6ae37a8aeba49a7dadba348a9063c87d4 100644 (file)
@@ -162,24 +162,15 @@ $this->registerCssFile('/css/write-offs-erp.css', ['position' => \yii\web\View::
                                   <?  $dataTable .= '</td>';
                                                         $dataTable .= '<td>';
 
-                                        $video = $product->video;
+                                    $video = $product->video;
                                     if (!empty($video)) {
-                                        $dataTable .= '<div class="gallery-container">';
-                                        $dataTable .= dosamigos\gallery\Gallery::widget([
-                                            'items' => [
-                                                [
-                                                    'url' => $video->url,
-                                                    'src' => $video->url,
-                                                    'type' => 'video/mp4',
-                                                    'videoOptions' => [
-                                                        'controls' => true,
-                                                    ]
-                                                ]
-                                            ]
-                                        ]);
+                                        $dataTable .= '<div class="video-container">';
+                                        $dataTable .= '<video width="320" height="240" controls>
+        <source src="' . $video->url . '" type="video/mp4">
+        Your browser does not support the video tag.
+    </video>';
                                         $dataTable .= '</div>';
                                     }
-
                                         $dataTable .= '</td>';
                                                             $dataTable .= '</tr>';?>
                                 <?php endif;