{% macro list(items, links, course, session) %} {{ 'Add' |trans }} {% for item in items %} {% endfor %}
{{ item.name }} {{ 'Edit' |trans }} {{ 'Delete' |trans }}
{% endmacro %} {% macro add(form, links, course, session) %} {{ 'List' |trans }}
{{ form_widget(form) }}
{% endmacro %} {% macro edit(form, links, course, session) %} {{ 'List' |trans }}
{{ form_widget(form) }}
{% endmacro %} {% macro read(item, links, course, session) %} {{ 'List' |trans }} {{ 'Edit' |trans }}

{{ item.id }}

{{ item.name }}

{% endmacro %}