diff --git a/app/Http/Requests/Bo/Products/StoreProductRequest.php b/app/Http/Requests/Bo/Products/StoreProductRequest.php index 82909c9..13b6ccd 100644 --- a/app/Http/Requests/Bo/Products/StoreProductRequest.php +++ b/app/Http/Requests/Bo/Products/StoreProductRequest.php @@ -68,8 +68,8 @@ class StoreProductRequest extends FormRequest return \array_merge( $rules, $this->pictureRules('picture_thumbnail', 332, 252, 332, 252, false), - $this->pictureRules('picture_ambiance', 774, 515, 774, 515, false), - $this->pictureRules('picture_packshot', 327, 252, 327, 252, false), + $this->pictureRules('picture_ambiance', 1115, 790, 1115, 790, false), + $this->pictureRules('picture_packshot', 560, 480, 560, 480, false), ); } diff --git a/resources/views/bo/pages/products/form.blade.php b/resources/views/bo/pages/products/form.blade.php index 521ab10..c7b5537 100644 --- a/resources/views/bo/pages/products/form.blade.php +++ b/resources/views/bo/pages/products/form.blade.php @@ -364,12 +364,12 @@ @include('bo.partials.inputs.varchar-picture', [ 'id' => 'productPictureAmbiance', 'name' => 'picture_ambiance', - 'width' => 774, - 'height' => 515, + 'width' => 1115, + 'height' => 790, 'model' => $productModel ?? null, 'helper' => __('crud.minicrud.dimensions_must_be', [ - 'widthpx' => '774px', - 'heightpx' => '515px', + 'widthpx' => '1115px', + 'heightpx' => '790px', ]), 'required' => true, 'preview' => true, @@ -438,12 +438,12 @@ @include('bo.partials.inputs.varchar-picture', [ 'id' => 'productPicturePackshot', 'name' => 'picture_packshot', - 'width' => 327, - 'height' => 252, + 'width' => 560, + 'height' => 480, 'model' => $productModel ?? null, 'helper' => __('crud.minicrud.dimensions_must_be', [ - 'widthpx' => '327px', - 'heightpx' => '252px', + 'widthpx' => '560px', + 'heightpx' => '480px', ]), 'required' => true, 'preview' => true, @@ -481,7 +481,8 @@ 'name' => 'cooking_advice', 'model' => $productModel ?? null, 'required' => true, - 'helper' => __('crud.minicrud.text_warning') . + 'helper' => + __('crud.minicrud.text_warning') . __('validation.gt.string', [ 'attribute' => __(':field :inter:model', [ 'field' => __('validation.custom.cooking_advice'), @@ -511,7 +512,8 @@ 'name' => 'ingredients', 'model' => $productModel ?? null, 'required' => true, - 'helper' => __('crud.minicrud.text_warning') . + 'helper' => + __('crud.minicrud.text_warning') . __('validation.gt.string', [ 'attribute' => __(':field :inter:model', [ 'field' => __('validation.custom.ingredients'), @@ -541,7 +543,7 @@ 'name' => 'nutritionnal_values', 'model' => $productModel ?? null, 'required' => true, - 'helper' => __('crud.helpers.nutritionnal_values') + 'helper' => __('crud.helpers.nutritionnal_values'), ])