From: marina Date: Tue, 27 May 2025 06:27:49 +0000 (+0300) Subject: ERP-417 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=408076d84270f09ad8d0bdaf971fdc4f6d9eefa4;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 cead9a2f..2593b3b2 100644 --- a/erp24/views/write_offs_erp/_form.php +++ b/erp24/views/write_offs_erp/_form.php @@ -217,7 +217,6 @@ JS 'name' => 'imageFiles', 'title' => 'Фотографии: jpg и png', 'type' => FileInput::className(), - 'columnOptions' => ['style' => 'width: 120px'], 'options' => [ 'options' => [ 'multiple' => true, @@ -254,55 +253,55 @@ JS ] ], [ - 'name' => 'videoFiles', - 'title' => 'Видео: mp4, mov, avi', - 'type' => FileInput::class, - 'options' => [ - 'options' => [ - 'multiple' => false, - 'accept' => 'video/*', - 'name' => 'video_name', - ], - 'pluginOptions' => [ - 'showPreview' => true, - 'showCaption' => false, - 'showRemove' => true, - 'showUpload' => false, - 'browseIcon' => '+', - 'cancelIcon' => 'x', - 'removeIcon' => '-', - 'buttonLabelClass' => 'hidden', - 'fileActionSettings' => [ - 'showUpload' => false - ], - 'previewFileType' => 'video', - 'allowedFileExtensions' => ['mp4', 'mov', 'avi'], - 'initialPreview' => isset($model->id) ? [ - Files::find() - ->select('url') - ->where([ - 'entity' => WriteOffsProductsErp::WRITE_OFFS_VIDEO, - 'entity_id' => $model->id - ]) - ->scalar() - ] : [], - 'initialPreviewAsData' => true, - 'initialPreviewConfig' => isset($model->id) ? [[ - 'type' => 'video', - 'caption' => basename( - Files::find() - ->select('url') - ->where([ - 'entity' => WriteOffsProductsErp::WRITE_OFFS_VIDEO, - 'entity_id' => $model->id - ]) - ->scalar() - ), - 'url' => Url::to(['delete-video', 'id' => $model->id]), - ]] : [], - ] - ] - ], + 'name' => 'videoFiles', + 'title' => 'Видео: mp4, mov, avi', + 'type' => FileInput::class, + 'options' => [ + 'options' => [ + 'multiple' => false, + 'accept' => 'video/*', + 'name' => 'video_name', + ], + 'pluginOptions' => [ + 'showPreview' => true, + 'showCaption' => false, + 'showRemove' => true, + 'showUpload' => false, + 'browseIcon' => '+', + 'cancelIcon' => 'x', + 'removeIcon' => '-', + 'buttonLabelClass' => 'hidden', + 'fileActionSettings' => [ + 'showUpload' => false + ], + 'previewFileType' => 'video', + 'allowedFileExtensions' => ['mp4', 'mov', 'avi'], + 'initialPreview' => isset($model->id) ? [ + Files::find() + ->select('url') + ->where([ + 'entity' => WriteOffsProductsErp::WRITE_OFFS_VIDEO, + 'entity_id' => $model->id + ]) + ->scalar() + ] : [], + 'initialPreviewAsData' => true, + 'initialPreviewConfig' => isset($model->id) ? [[ + 'type' => 'video', + 'caption' => basename( + Files::find() + ->select('url') + ->where([ + 'entity' => WriteOffsProductsErp::WRITE_OFFS_VIDEO, + 'entity_id' => $model->id + ]) + ->scalar() + ), + 'url' => Url::to(['delete-video', 'id' => $model->id]), + ]] : [], + ] + ] +], [ 'name' => 'comment', 'type' => 'textInput',