From 032da3b36f31ed87c1f0b0a81eaa07b2bef26ca3 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 27 May 2025 09:53:38 +0300 Subject: [PATCH] ERP-417 --- erp24/views/write_offs_erp/_form.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/erp24/views/write_offs_erp/_form.php b/erp24/views/write_offs_erp/_form.php index 3a67777a..24833539 100644 --- a/erp24/views/write_offs_erp/_form.php +++ b/erp24/views/write_offs_erp/_form.php @@ -245,10 +245,13 @@ JS [ 'name' => 'videoFiles', 'title' => 'Видео: mp4, mov, avi', - 'type' => \kartik\file\FileInput::class, + 'type' => FileInput::class, 'options' => [ -// 'multiple' => false, - 'accept' => 'video/*', + 'options' => [ + 'multiple' => false, + 'accept' => 'video/*', + 'name' => 'video_name', + ], 'pluginOptions' => [ 'showPreview' => true, 'showCaption' => true, @@ -285,12 +288,8 @@ JS ), 'url' => Url::to(['delete-video', 'id' => $model->id]), ]] : [], - ], - 'style' => 'max-width: 150px; overflow: hidden;', - ], - 'columnOptions' => [ - 'style' => 'max-width: 150px;', - ], + ] + ] ], [ 'name' => 'comment', -- 2.39.5