{% for option in options %}
  • {% include 'Product/sub_entities_indicators.html.twig' with { 'title': option, 'entities': option.optionVariants, 'subEntitiesTitle': 'Liste des variants' } %} {% if option.sideComponent %} {{ 'app.shop_owner.pages.options.side_component'|trans }} {% endif %} {% set badges = constant('APP\\Entity\\Product\\Option\\Option::BADGES') %} {{ ('app.shop_owner.pages.options.type.' ~ option.type)|trans|badge(badges[option.type]) }} {% if option.enabled %} {{ 'app.shop_owner.pages.products.list.enabled'|trans }} {% else %} {{ 'app.shop_owner.pages.products.list.disabled'|trans }} {% endif %} {% include 'Includes/duplicate.html.twig' with { 'route': path('foxorders_shop_option_duplicate', {'option': option.id }), } %} {{ link('edit','modal', 'success', {'entity-id' : option.id, 'entity-name' : option, 'modalId': 'foxorders_modal_form_menu' }) }} {% include 'Includes/delete.html.twig' with { 'route': path('foxorders_shop_option_delete', {'id': option.id }) , 'token': csrf_token('delete' ~ option.id), 'button': 'list_delete' } %}
  • {% endfor %}