Skip to content

Commit

Permalink
OP-289: Add a helpbox explaining what "Is packed product" does
Browse files Browse the repository at this point in the history
  • Loading branch information
hmfilar committed Sep 9, 2024
1 parent 44bf4a0 commit 65e9982
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Resources/translations/messages.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ bitbag_sylius_product_bundle:
products_in_bundle: Products in bundle
is_packed_product: Is packed product
is_bundle: Is bundle
is_packed_help: If the bundle is not marked as packed, customers will be able to select different variants for products in the bundle
4 changes: 4 additions & 0 deletions src/Resources/views/Admin/Product/Tab/_bundle.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<div class="ui tab" data-tab="bundle">

{{ form_row(form.productBundle.isPackedProduct) }}
{{ form_help(form.productBundle.isPackedProduct, {
'help': 'bitbag_sylius_product_bundle.ui.is_packed_help'|trans,
'help_attr': {'class':'ui info message'}
}) }}
{{ form_row(form.productBundle.productBundleItems) }}

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

0 comments on commit 65e9982

Please sign in to comment.