]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-417
authormarina <m.zozirova@gmail.com>
Tue, 27 May 2025 07:06:47 +0000 (10:06 +0300)
committermarina <m.zozirova@gmail.com>
Tue, 27 May 2025 07:06:47 +0000 (10:06 +0300)
erp24/views/write_offs_erp/_form.php

index 248335397b0406c5a47ebca227890282f55d5946..e426a00a26e87483d85602a13b377f43385ee4ae 100644 (file)
@@ -245,23 +245,25 @@ JS
                 [
                     'name' => 'videoFiles',
                     'title' => 'Видео: mp4, mov, avi',
-                    'type' => FileInput::class,
+                    'type' => FileInput::className(),
                     'options' => [
                         'options' => [
                             'multiple' => false,
                             'accept' => 'video/*',
                             'name' => 'video_name',
+                            'capture' => '',
+                            'class' => 'videos'
                         ],
                         'pluginOptions' => [
                             'showPreview' => true,
                             'showCaption' => true,
                             'showRemove' => true,
                             'showUpload' => false,
+                            'overwriteInitial' => true,
                             'browseLabel' => '',
                             'removeLabel' => '',
                             'cancelLabel' => '',
                             'browseIcon' => '+',
-                            'removeIcon' => '-',
                             'cancelIcon' => 'x',
                             'previewFileType' => 'video',
                             'allowedFileExtensions' => ['mp4', 'mov', 'avi'],