fix product images dimensions - #62
This commit is contained in:
parent
dcf995bdc6
commit
77ad125ad2
2 changed files with 15 additions and 13 deletions
|
|
@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue