Skip to content

Commit 345a182

Browse files
authored
Add grouped transport selection to checkout (#4662)
2 parents be14903 + 6df4d6f commit 345a182

37 files changed

Lines changed: 972 additions & 19 deletions

src/Form/Admin/Advert/AdvertFormType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
148148
mimeTypes: ['image/png', 'image/jpg', 'image/jpeg', 'image/gif'],
149149
mimeTypesMessage: 'Image can be only in JPG, GIF or PNG format',
150150
maxSize: '15M',
151-
maxSizeMessage: 'Uploaded image is to large ({{ size }} {{ suffix }}). '
151+
maxSizeMessage: 'Uploaded image is too large ({{ size }} {{ suffix }}). '
152152
. 'Maximum size of an image is {{ limit }} {{ suffix }}.',
153153
),
154154
],
@@ -168,7 +168,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
168168
mimeTypes: ['image/png', 'image/jpg', 'image/jpeg', 'image/gif'],
169169
mimeTypesMessage: 'Image can be only in JPG, GIF or PNG format',
170170
maxSize: '15M',
171-
maxSizeMessage: 'Uploaded image is to large ({{ size }} {{ suffix }}). '
171+
maxSizeMessage: 'Uploaded image is too large ({{ size }} {{ suffix }}). '
172172
. 'Maximum size of an image is {{ limit }} {{ suffix }}.',
173173
),
174174
],

src/Form/Admin/Blog/BlogArticleFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ private function createImageGroup(FormBuilderInterface $builder, array $options)
281281
mimeTypes: ['image/png', 'image/jpg', 'image/jpeg', 'image/gif'],
282282
mimeTypesMessage: 'Image can be only in JPG, GIF or PNG format',
283283
maxSize: '15M',
284-
maxSizeMessage: 'Uploaded image is to large ({{ size }} {{ suffix }}). '
284+
maxSizeMessage: 'Uploaded image is too large ({{ size }} {{ suffix }}). '
285285
. 'Maximum size of an image is {{ limit }} {{ suffix }}.',
286286
),
287287
],

src/Form/Admin/Blog/BlogCategoryFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ private function createImageGroup(FormBuilderInterface $builder, array $options)
245245
mimeTypes: ['image/png', 'image/jpg', 'image/jpeg', 'image/gif'],
246246
mimeTypesMessage: 'Image can be only in JPG, GIF or PNG format',
247247
maxSize: '15M',
248-
maxSizeMessage: 'Uploaded image is to large ({{ size }} {{ suffix }}). '
248+
maxSizeMessage: 'Uploaded image is too large ({{ size }} {{ suffix }}). '
249249
. 'Maximum size of an image is {{ limit }} {{ suffix }}.',
250250
),
251251
],

src/Form/Admin/Category/CategoryFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
215215
mimeTypes: ['image/png', 'image/jpg', 'image/jpeg', 'image/gif'],
216216
mimeTypesMessage: 'Image can be only in JPG, GIF or PNG format',
217217
maxSize: '2M',
218-
maxSizeMessage: 'Uploaded image is to large ({{ size }} {{ suffix }}). '
218+
maxSizeMessage: 'Uploaded image is too large ({{ size }} {{ suffix }}). '
219219
. 'Maximum size of an image is {{ limit }} {{ suffix }}.',
220220
),
221221
],

src/Form/Admin/Domain/DomainFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
3737
mimeTypes: ['image/png'],
3838
mimeTypesMessage: 'Image can be only in PNG format',
3939
maxSize: '2M',
40-
maxSizeMessage: 'Uploaded image is to large ({{ size }} {{ suffix }}). '
40+
maxSizeMessage: 'Uploaded image is too large ({{ size }} {{ suffix }}). '
4141
. 'Maximum size of an image is {{ limit }} {{ suffix }}.',
4242
),
4343
],

src/Form/Admin/NotificationBar/NotificationBarFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
8989
mimeTypes: ['image/png', 'image/jpg', 'image/jpeg', 'image/gif'],
9090
mimeTypesMessage: 'Image can be only in JPG, GIF or PNG format',
9191
maxSize: '15M',
92-
maxSizeMessage: 'Uploaded image is to large ({{ size }} {{ suffix }}). '
92+
maxSizeMessage: 'Uploaded image is too large ({{ size }} {{ suffix }}). '
9393
. 'Maximum size of an image is {{ limit }} {{ suffix }}.',
9494
),
9595
],

src/Form/Admin/Payment/PaymentFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
216216
mimeTypes: ['image/png', 'image/jpg', 'image/jpeg', 'image/gif'],
217217
mimeTypesMessage: 'Image can be only in JPG, GIF or PNG format',
218218
maxSize: '2M',
219-
maxSizeMessage: 'Uploaded image is to large ({{ size }} {{ suffix }}). '
219+
maxSizeMessage: 'Uploaded image is too large ({{ size }} {{ suffix }}). '
220220
. 'Maximum size of an image is {{ limit }} {{ suffix }}.',
221221
),
222222
],

src/Form/Admin/Product/Brand/BrandFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
137137
new Constraints\Image(
138138
maxSize: '2M',
139139
mimeTypes: ['image/png', 'image/jpg', 'image/jpeg', 'image/gif'],
140-
maxSizeMessage: 'Uploaded image is to large ({{ size }} {{ suffix }}). '
140+
maxSizeMessage: 'Uploaded image is too large ({{ size }} {{ suffix }}). '
141141
. 'Maximum size of an image is {{ limit }} {{ suffix }}.',
142142
mimeTypesMessage: 'Image can be only in JPG, GIF or PNG format',
143143
),

src/Form/Admin/Product/ProductFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ private function createImagesGroup(FormBuilderInterface $builder, array $options
735735
new Constraints\Image(
736736
maxSize: '2M',
737737
mimeTypes: ['image/png', 'image/jpg', 'image/jpeg', 'image/gif'],
738-
maxSizeMessage: 'Uploaded image is to large ({{ size }} {{ suffix }}). '
738+
maxSizeMessage: 'Uploaded image is too large ({{ size }} {{ suffix }}). '
739739
. 'Maximum size of an image is {{ limit }} {{ suffix }}.',
740740
mimeTypesMessage: 'Image can be only in JPG, GIF or PNG format',
741741
),

src/Form/Admin/SalesRepresentative/SalesRepresentativeFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
9696
mimeTypes: ['image/png', 'image/jpg', 'image/jpeg'],
9797
mimeTypesMessage: 'Image can be only in JPG or PNG format',
9898
maxSize: '2M',
99-
maxSizeMessage: 'Uploaded image is to large ({{ size }} {{ suffix }}). '
99+
maxSizeMessage: 'Uploaded image is too large ({{ size }} {{ suffix }}). '
100100
. 'Maximum size of an image is {{ limit }} {{ suffix }}.',
101101
),
102102
],

0 commit comments

Comments
 (0)