fix helpers and request to match crea
This commit is contained in:
parent
5e4b413067
commit
66842b4220
2 changed files with 6 additions and 6 deletions
|
|
@ -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),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue