From d1c9ee38c213b5130fd1fe203ccea45f79b7c0af Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 27 May 2025 10:06:47 +0300 Subject: [PATCH] ERP-417 --- erp24/views/write_offs_erp/_form.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erp24/views/write_offs_erp/_form.php b/erp24/views/write_offs_erp/_form.php index 24833539..e426a00a 100644 --- a/erp24/views/write_offs_erp/_form.php +++ b/erp24/views/write_offs_erp/_form.php @@ -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'], -- 2.39.5