Display Module 13-05-2026
This commit is contained in:
parent
6a65354f4c
commit
9262132325
41 changed files with 496 additions and 334 deletions
|
|
@ -461,7 +461,7 @@ new class extends Component
|
|||
'status' => 'required|in:active,draft',
|
||||
// Bilder
|
||||
'mainImages' => 'nullable|array|min:0|max:10',
|
||||
'mainImages.*' => 'mimes:jpeg,jpg,png|max:10240',
|
||||
'mainImages.*' => 'mimes:jpeg,jpg,png|max:204800',
|
||||
// Maße & Material
|
||||
'widthCm' => 'nullable|integer|min:1',
|
||||
'heightCm' => 'nullable|integer|min:1',
|
||||
|
|
@ -546,7 +546,7 @@ new class extends Component
|
|||
'priceDisplayText.required_if' => __('Bei Ab-Preis ist eine Preisangabe erforderlich (z.B. "Ab 2.500 €").'),
|
||||
'mainImages.max' => __('Maximal 10 Produktbilder erlaubt.'),
|
||||
'mainImages.*.mimes' => __('Nur Bilder (JPG, JPEG, PNG) erlaubt.'),
|
||||
'mainImages.*.max' => __('Bilder dürfen maximal 10 MB groß sein.'),
|
||||
'mainImages.*.max' => __('Bilder dürfen maximal 200 MB groß sein.'),
|
||||
'sku.unique' => __('Diese Artikelnummer ist bereits vergeben.'),
|
||||
'sellingPrice.min' => __('Der Verkaufspreis muss größer als 0 sein.'),
|
||||
'countryOfOrigin.size' => __('Bitte geben Sie einen gültigen 2-stelligen ISO-Ländercode ein (z.B. DE).'),
|
||||
|
|
@ -1229,7 +1229,7 @@ new class extends Component
|
|||
<flux:card class="shadow-elegant">
|
||||
<div class="mb-4">
|
||||
<flux:heading size="lg">{{ __('Produktbilder') }}</flux:heading>
|
||||
<flux:subheading>{{ __('Nur Bilder (JPG, JPEG, PNG) – max. 10 MB pro Bild, max. 10 Bilder') }}
|
||||
<flux:subheading>{{ __('Nur Bilder (JPG, JPEG, PNG) – max. 200 MB pro Bild, max. 10 Bilder') }}
|
||||
</flux:subheading>
|
||||
</div>
|
||||
<flux:separator class="mb-6" />
|
||||
|
|
@ -1309,7 +1309,7 @@ new class extends Component
|
|||
<flux:file-upload wire:model="mainImages" label="Upload files" multiple
|
||||
accept="image/jpeg,image/png,.jpg,.jpeg,.png">
|
||||
<flux:file-upload.dropzone heading="{{ __('Bilder hochladen') }}"
|
||||
text="{{ __('Nur JPEG oder PNG – max. 10 MB') }}" with-progress />
|
||||
text="{{ __('Nur JPEG oder PNG – max. 200 MB') }}" with-progress />
|
||||
</flux:file-upload>
|
||||
|
||||
@if (isset($mainImages) && count($mainImages) > 0)
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@ new class extends Component
|
|||
'status' => 'required|in:active,draft',
|
||||
'partnerProductNumber' => 'nullable|string|max:100',
|
||||
'mainImages' => 'nullable|array|min:0|max:10',
|
||||
'mainImages.*' => 'mimes:jpeg,jpg,png|max:10240',
|
||||
'mainImages.*' => 'mimes:jpeg,jpg,png|max:204800',
|
||||
];
|
||||
|
||||
$messages = [
|
||||
|
|
@ -250,7 +250,7 @@ new class extends Component
|
|||
'categoryId.required' => __('Bitte wählen Sie eine Kategorie aus.'),
|
||||
'mainImages.max' => __('Maximal 10 Produktbilder erlaubt.'),
|
||||
'mainImages.*.mimes' => __('Nur Bilder (JPG, JPEG, PNG) erlaubt.'),
|
||||
'mainImages.*.max' => __('Bilder dürfen maximal 10 MB groß sein.'),
|
||||
'mainImages.*.max' => __('Bilder dürfen maximal 200 MB groß sein.'),
|
||||
];
|
||||
|
||||
if ($isAdminWithoutPartner) {
|
||||
|
|
@ -459,7 +459,7 @@ new class extends Component
|
|||
<flux:card class="shadow-elegant">
|
||||
<div class="mb-4">
|
||||
<flux:heading size="lg">{{ $isEditing ? __('Produktbilder') : __('Produktbild') }}</flux:heading>
|
||||
<flux:subheading>{{ __('Nur Bilder (JPG, JPEG, PNG) – max. 10 MB pro Bild, max. 10 Bilder') }}
|
||||
<flux:subheading>{{ __('Nur Bilder (JPG, JPEG, PNG) – max. 200 MB pro Bild, max. 10 Bilder') }}
|
||||
</flux:subheading>
|
||||
</div>
|
||||
<flux:separator class="mb-6" />
|
||||
|
|
@ -539,7 +539,7 @@ new class extends Component
|
|||
<flux:file-upload wire:model="mainImages" label="Upload files" multiple
|
||||
accept="image/jpeg,image/png,.jpg,.jpeg,.png">
|
||||
<flux:file-upload.dropzone heading="{{ __('Bilder hochladen') }}"
|
||||
text="{{ __('Nur JPEG oder PNG – max. 10 MB') }}" with-progress />
|
||||
text="{{ __('Nur JPEG oder PNG – max. 200 MB') }}" with-progress />
|
||||
</flux:file-upload>
|
||||
|
||||
@if (isset($mainImages) && count($mainImages) > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue