Skip to content

Commit

Permalink
Sylius#9694 Do not show bulk sections and checkboxes if bulk actions …
Browse files Browse the repository at this point in the history
…are disabled
  • Loading branch information
laurent35240 committed Oct 24, 2018
1 parent 2ec01e1 commit 5d94530
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -34,7 +34,7 @@
</div>
{% endif %}

{% if data|length > 0 and definition.actionGroups.bulk is defined %}
{% if data|length > 0 and definition.actionGroups.bulk is defined and definition.getEnabledActions('bulk')|length > 0 %}
<div class="ui hidden divider"></div>
<div class="ui styled fluid accordion">
<div class="title active">
Expand Down
@@ -1,7 +1,7 @@
{% macro headers(grid, definition, requestAttributes) %}
{% import '@SyliusUi/Macro/sorting.html.twig' as sorting %}

{% if definition.actionGroups.bulk is defined %}
{% if definition.actionGroups.bulk is defined and definition.getEnabledActions('bulk')|length > 0 %}
<th></th>
{% endif %}

Expand All @@ -21,7 +21,7 @@

{% macro row(grid, definition, row) %}
<tr class="item">
{% if definition.actionGroups.bulk is defined %}
{% if definition.actionGroups.bulk is defined and definition.getEnabledActions('bulk')|length > 0 %}
<td><input class="bulk-select-checkbox" type="checkbox" value="{{ row.id }}" /></td>
{% endif %}
{% for field in definition.enabledFields|sort_by('position') %}
Expand Down

0 comments on commit 5d94530

Please sign in to comment.