fix helpers and request to match crea

This commit is contained in:
Nicolas Demangeat 2024-06-18 14:28:56 +02:00
parent 5e4b413067
commit 66842b4220
2 changed files with 6 additions and 6 deletions

View file

@ -58,7 +58,7 @@ class StoreNewsRequest extends FormRequest
];
return \array_merge(
$rules,
$this->pictureRules('picture', 500, 400, 500, 400, true),
$this->pictureRules('picture', 330, 210, 330, 210, true),
$this->pictureRules('thumbnail', 300, 200, 300, 200, true),
);
}

View file

@ -244,12 +244,12 @@
@include('bo.partials.inputs.varchar-picture', [
'id' => 'newsPicture',
'name' => 'picture',
'width' => 500,
'height' => 400,
'width' => 330,
'height' => 210,
'model' => $newsModel ?? null,
'helper' => __('crud.minicrud.dimensions_must_be', [
'widthpx' => '500px',
'heightpx' => '400px',
'widthpx' => '330px',
'heightpx' => '210px',
]),
'required' => true,
'preview' => true,
@ -386,4 +386,4 @@
<div class="col-12 text-center">
<p><b>{{ __('validation.custom.required_fields') }}</b></p>
</div>
</div>
</div>