From: marina Date: Thu, 20 Feb 2025 13:39:45 +0000 (+0300) Subject: ERP-302 Редактирование букета X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=a800001974394cd197f69c936f6cb5ea44bacbce;p=erp24_rep%2Fyii-erp24%2F.git ERP-302 Редактирование букета --- diff --git a/erp24/views/bouquet/_form.php b/erp24/views/bouquet/_form.php index a798f471..89503e5c 100644 --- a/erp24/views/bouquet/_form.php +++ b/erp24/views/bouquet/_form.php @@ -22,7 +22,7 @@ use yii_app\records\MatrixType; $this->registerCss(" .file-caption { - max-width: 62% !important; + max-width: 72% !important; } "); @@ -36,22 +36,27 @@ $form = ActiveForm::begin([ 'options' => ['enctype' => 'multipart/form-data'], ]); ?> -
-
-
-

-
-
- title : null, ['class' => 'form-control', 'placeholder' => 'Введите название']); ?> -
+

+
+
+ 'btn btn-primary ms-3 mt-4 w-45']) ?>
+
+
+
+

+ +
+ title : null, [ + 'class' => 'form-control', + 'placeholder' => 'Введите название' + ]); ?> +
-
-
-
- 'h5 mt-2 mb-0']) ?> -
-
+
+ + +
'matrix_type_id', 'value' => isset($model->matrixType) ? $model->matrixType->matrix_type_id : null, @@ -63,19 +68,12 @@ $form = ActiveForm::begin([ 'allowClear' => true, ], ]) ?> -
-
-
-
@@ -114,12 +112,13 @@ $form = ActiveForm::begin([ 'showPreview' => true, 'showUpload' => false, 'showCancel' => false, + 'removeLabel' => '', 'mainClass' => 'input-group-lg', 'maxFileSize' => 2800, // Максимальный размер файла (в килобайтах) 'dropZoneTitle' => 'Выберите изображение', // Текст на зоне для перетаскивания 'browseOnZoneClick' => true, // Разрешить клик по зоне перетаскивания 'fileActionSettings' => [ - 'showZoom' => false, // Убираем иконку для увеличения + 'showZoom' => false, ], ], ])->label(false) ?> @@ -140,6 +139,7 @@ $form = ActiveForm::begin([ 'showCancel' => false, 'mainClass' => 'input-group-lg', 'initialPreview' => $videoUrls, + 'removeLabel' => '', 'maxFileSize' => 100000, // Максимальный размер файла (в килобайтах) 'dropZoneTitle' => 'Выберите видеофайл', // Текст на зоне для перетаскивания 'browseOnZoneClick' => true, // Разрешить клик по зоне перетаскивания @@ -162,6 +162,7 @@ $form = ActiveForm::begin([ 'showPreview' => true, 'showUpload' => false, 'showCancel' => false, + 'removeLabel' => '', 'mainClass' => 'input-group-lg', 'initialPreview' => $processUrls, 'maxFileSize' => 100000, diff --git a/erp24/views/bouquet/update.php b/erp24/views/bouquet/update.php index a4921f54..b83fde87 100644 --- a/erp24/views/bouquet/update.php +++ b/erp24/views/bouquet/update.php @@ -20,8 +20,14 @@ $this->registerJsFile('/js/bouquet/bouquet.js', ['position' => \yii\web\View::PO ?>
-

+

title) ?>

+
+
+ 'btn btn-primary ms-3 mt-4 w-45']) ?> +
+
+