Merge branch 'trunk'
This commit is contained in:
commit
4b3abf03ad
2 changed files with 9 additions and 5 deletions
|
|
@ -214,9 +214,9 @@ class StoreAdviceRequest extends FormRequest
|
|||
];
|
||||
return \array_merge(
|
||||
$rules,
|
||||
$this->pictureRules('picture', 650, 690, 650, 690, true),
|
||||
$this->pictureRules('sticker', 370, 300, 370, 300, true),
|
||||
$this->pictureRules('sticker_sm', 270, 145, 270, 145, true),
|
||||
$this->pictureRules('picture', 650, 690, 650, 690, false),
|
||||
$this->pictureRules('sticker', 370, 300, 370, 300, false),
|
||||
$this->pictureRules('sticker_sm', 270, 145, 270, 145, false),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,12 @@
|
|||
<tr class="border-bottom">
|
||||
<td class="text-center align-middle">{{ $adviceModel->title }}</td>
|
||||
<td class="text-center align-middle">
|
||||
<x-uwil-common::markup.img class="bo-image-preview" alt="{{ __('Preview advice picture') }}"
|
||||
url="{{ asset($adviceModel->picture) }}" />
|
||||
@if($adviceModel->picture)
|
||||
<x-uwil-common::markup.img class="bo-image-preview" alt="{{ __('Preview advice picture') }}"
|
||||
url="{{ asset($adviceModel->picture) }}" />
|
||||
@else
|
||||
<p>{{ __('Pas d\'image') }}</p>
|
||||
@endif
|
||||
</td>
|
||||
@include('bo.modules.change-published-status', [
|
||||
'routeName' => 'advice',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue