158158 <h2 class =" product-page__subtitle" >{{ $t('galleryTitle') }}</h2 >
159159 <Gallery ref =" gallery" v-model =" form.gallery" :disabled =" !canModify" />
160160 </Card >
161+ <Card class =" product-page__rewards" >
162+ <h2 class =" product-page__subtitle" >{{ $t('rewardImagesTitle') }}</h2 >
163+ <Gallery ref =" gallery" v-model =" form.reward_images" :disabled =" !canModify" />
164+ </Card >
161165 </form >
162166 </ValidationObserver >
163167 </div >
170174 "titleNew" : " Nowy produkt" ,
171175 "baseFormTitle" : " Informacje podstawowe" ,
172176 "galleryTitle" : " Zdjęcia i wideo produktu" ,
177+ "rewardImagesTitle" : " Wyróżnienia produktu" ,
173178 "deleteConfirm" : " Czy na pewno chcesz usunąć ten produkt?" ,
174179 "nav" : {
175180 "goTo" : " Przejdź do produktu"
@@ -266,6 +271,7 @@ const EMPTY_FORM: ProductComponentForm = {
266271 order: null ,
267272 schemas: [],
268273 gallery: [],
274+ reward_images: [],
269275 tags: [],
270276 seo: undefined ,
271277 attributes: [],
@@ -276,6 +282,8 @@ const EMPTY_FORM: ProductComponentForm = {
276282 published: [],
277283 translations: {},
278284 banner: null ,
285+ safety_information: undefined ,
286+ manufacturer_id: undefined ,
279287}
280288
281289export default defineComponent ({
@@ -439,6 +447,7 @@ export default defineComponent({
439447 ... this .form ,
440448 order: this .form .order || 0 ,
441449 media: this .form .gallery .map (({ id }) => id ),
450+ reward_images: this .form .reward_images .map (({ id }) => id ),
442451 tags: this .form .tags .map (({ id }) => id ),
443452 schemas: this .form .schemas .map (({ id }) => id ),
444453 related_sets: this .form .related_sets .map (({ id }) => id ),
@@ -525,15 +534,15 @@ export default defineComponent({
525534
526535.product-page {
527536 display : grid ;
528- grid-template-rows : auto ;
537+ grid-template-rows : auto max-content ;
529538 grid-gap : 14px ;
530539 align-items : start ;
531540 grid-template-columns : 1fr ;
532- grid-template-areas : ' visibility' ' gallery' ' main' ;
541+ grid-template-areas : ' visibility' ' gallery' ' rewards ' ' main' ;
533542
534543 @media ($viewport- 7) {
535544 grid-template-columns : 2.6fr 1fr ;
536- grid-template-areas : ' main visibility' ' main gallery' ' main .' ;
545+ grid-template-areas : ' main visibility' ' main gallery' ' main rewards ' ' main .' ;
537546 }
538547
539548 & __main {
@@ -545,6 +554,9 @@ export default defineComponent({
545554 & __gallery {
546555 grid-area : gallery;
547556 }
557+ & __rewards {
558+ grid-area : rewards;
559+ }
548560
549561 & __subtitle {
550562 font-size : 1em ;
0 commit comments