Skip to content

Commit 65e9982

Browse files
committed
OP-289: Add a helpbox explaining what "Is packed product" does
1 parent 44bf4a0 commit 65e9982

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/Resources/translations/messages.en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ bitbag_sylius_product_bundle:
88
products_in_bundle: Products in bundle
99
is_packed_product: Is packed product
1010
is_bundle: Is bundle
11+
is_packed_help: If the bundle is not marked as packed, customers will be able to select different variants for products in the bundle

src/Resources/views/Admin/Product/Tab/_bundle.html.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
<div class="ui tab" data-tab="bundle">
44

55
{{ form_row(form.productBundle.isPackedProduct) }}
6+
{{ form_help(form.productBundle.isPackedProduct, {
7+
'help': 'bitbag_sylius_product_bundle.ui.is_packed_help'|trans,
8+
'help_attr': {'class':'ui info message'}
9+
}) }}
610
{{ form_row(form.productBundle.productBundleItems) }}
711

812
{{ sonata_block_render_event('sylius.admin.product.' ~ action ~ '.tab_bundle', {'form': form }) }}

0 commit comments

Comments
 (0)