{% extends 'datatable.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% import "macros/datatables.html.twig" as tables %} {% set manageAllowed = is_granted('manage_tag') %} {% block datatable_row %} {% set type = '' %} {% if entry.amount == 0 %} {% set type = 'bg-yellow' %} {% endif %} {% if dataTable.hasBatchForm() %} {{ tables.datatable_multiupdate_row(entry.id) }} {% endif %} {{ widgets.label_name(entry.name, entry.color|colorize(entry.name)) }} {{ widgets.badge_counter(entry.amount, null, type) }} {% set event = actions(app.user, 'tag', 'index', {'tag': entry}) %} {{ widgets.table_actions(event.actions) }} {% endblock %}