{% set modules_controller = "App\\Controller\\Modules\\ModulesController::" %}
{% set MODULE_NAME_ISSUES = constant(modules_controller ~ "MODULE_NAME_ISSUES") %}
{% if module_name is defined %}
{{ module_name }}
{% endif %}
{% for todo in all_todo %}
{% set use_popover_description = true %}
{% if todo.description is null
and todo.myIssue is null
%}
{% set use_popover_description = false %}
{% endif %}
{% set popover_description = "" %}
{% if use_popover_description %}
{% set popover_description %}
{% if todo.description is not null%}
{{ 'todo.list.info.description' | trans }}:
{{ todo.description }}
{% endif %}
{% if todo.myIssue is not null %}
{{ 'todo.list.relatedModules.issues.singular' | trans }}: {{ todo.myIssue.name }}
{% endif %}
{% if
(
todo.module is not null
and MODULE_NAME_ISSUES == todo.module.name
and todo.myIssue is null
)
%}
{{ 'todo.list.info.notRelatedToAnySpecificRecord' | trans }}
{% endif %}
{% endset %}
{% endif %}
{% include 'modules/my-todo/components/one-parent-task-todo.html.twig' with {
todo: todo
} %}
{% include 'modules/my-todo/components/modal.html.twig' with {
'todo' : todo
} %}
{% endfor %}