{% for category in categories %} {% set lock_record = category.id %} {% set lock_type = constant('App\\Entity\\System\\LockedResource::TYPE_ENTITY') %} {% set lock_target = constant('App\\Controller\\Modules\\ModulesController::MODULE_ENTITY_NOTES_CATEGORY') %} {% if isAllowedToSeeResource(lock_record, lock_type, lock_target) %} {% include 'modules/common/components/table-cells/actions.html.twig' with { "trash" : true, "edit" : true, "save" : true, "fontawesome" : true, "lock_record" : lock_record, "lock_type" : lock_type, "lock_target" : lock_target, } %} {% endif %} {% endfor %}
{{ 'datatables.table.id' | trans }} {{ 'notes.category.table.category' | trans }} {{ 'notes.category.table.icon' | trans }} {{ 'notes.category.table.color' | trans }} {{ 'notes.category.table.parent' | trans }} {{ 'datatables.table.actions' | trans }}
{{ category.id }} {{ category.name }} {{ category.icon }} {% include 'page-elements/libs/js-color-button.html.twig' with { color : category.color, pickerNumber : loop.index0 } %}