File tree Expand file tree Collapse file tree
src/BootstrapAdminUi/templates/shared Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{% import ' @SyliusBootstrapAdminUi/shared/helper/table.html.twig' as table %}
22{% import ' @SyliusBootstrapAdminUi/shared/helper/pagination.html.twig' as pagination %}
33
4- {% set resources = hookable_metadata .context .resources %}
4+ {% set resources = resources | default ( hookable_metadata .context .resources | default ( null )) %}
55{% set data = resources .data | default ([]) %}
66{% set definition = resources .definition | default (null ) %}
77
Original file line number Diff line number Diff line change 2424{% macro row(grid , definition , row ) %}
2525 {% import ' @SyliusBootstrapAdminUi/shared/helper/dropdown.html.twig' as dropdown %}
2626
27- <tr class =" item" {{ sylius_test_html_attribute(' row' ) }} {{ sylius_test_html_attribute(' resource-id' , row .id ) }}>
28- {% if definition .actionGroups .bulk is defined and definition.getEnabledActions (' bulk' )| length > 0 %}
27+ <tr class =" item" {{ sylius_test_html_attribute(' row' ) }} {{ sylius_test_html_attribute(' resource-id' , row .id | default ( null ) ) }}>
28+ {% if definition .actionGroups .bulk is defined and definition.getEnabledActions (' bulk' )| length > 0 and row . id is defined %}
2929 <td class =" text-center" ><input data-check-all-group =" index" class =" form-check-input" type =" checkbox" value =" {{ row .id }}" /></td >
3030 {% endif %}
3131 {% for field in definition .enabledFields | sylius_sort_by(' position' ) %}
You can’t perform that action at this time.
0 commit comments