From: marina Date: Tue, 27 May 2025 06:15:32 +0000 (+0300) Subject: ERP-417 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=787043ff2101f766a6e6ee24a09cef922511faef;p=erp24_rep%2Fyii-erp24%2F.git ERP-417 --- diff --git a/erp24/views/write_offs_erp/_form.php b/erp24/views/write_offs_erp/_form.php index ba726935..f2992ae9 100644 --- a/erp24/views/write_offs_erp/_form.php +++ b/erp24/views/write_offs_erp/_form.php @@ -174,51 +174,6 @@ JS ], // 'items' => [0,1], ], - [ - 'name' => 'imageFiles', - 'title' => 'Фотографии: jpg и png', - 'type' => FileInput::className(), - 'options' => [ - 'options' => [ - 'multiple' => true, - 'accept' => 'image/*', - 'name' => 'image_name', - 'capture' => '', - 'class' => 'file', - 'required' => true, - ], - 'pluginOptions' => [ - 'showPreview' => true, - 'showCaption' => true, // ✅ Должно быть true - 'initialCaption' => '55656', - 'initialPreview' => '809', -// 'initialPreviewConfig' => function($data) { -// if (!$data || !isset($data['id'])) return []; -// $file = Files::findOne([ -// 'entity' => WriteOffsProductsErp::WRITE_OFFS_VIDEO, -// 'entity_id' => $data['id'] -// ]); -// return $file ? [[ -// 'caption' => basename($file->url), // ✅ Обязательно! -// 'type' => 'video', -// 'size' => @filesize(Yii::getAlias('@webroot') . $file->url), -// ]] : []; -// }, - 'browseIcon' => '+', - 'cancelIcon' => 'x', - 'removeIcon' => '-', - 'buttonLabelClass' => 'hidden', -// 'browseIcon' => '', - 'fileActionSettings' => ['showUpload' => false], - 'maxFileCount' => 10, - 'multiple' => true - ], - 'model' => $multipleUploadForm, - ], - 'columnOptions' => [ - 'class' => 'custom_css_class_file_input' - ] - ], [ 'name' => 'images_row', 'type' => BaseColumn::TYPE_STATIC,