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

index ba72693537108700c7cb2fb0b55800fb81a92c8b..f2992ae9364fc58c01266bede6b672d4c30d9133 100644 (file)
@@ -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' => '<i class="glyphicon glyphicon-picture 12345"></i>',
-                            'fileActionSettings' => ['showUpload' => false],
-                            'maxFileCount' => 10,
-                            'multiple' => true
-                        ],
-                        'model' => $multipleUploadForm,
-                    ],
-                    'columnOptions' => [
-                        'class' => 'custom_css_class_file_input'
-                    ]
-                ],
                 [
                     'name' => 'images_row',
                     'type' => BaseColumn::TYPE_STATIC,