{% import _self as table_tool %} {% macro row_tool(tool, is_child, categories, _p) %} {% set url_params = {'id': tool.id}|url_encode() %} {{ tool.name }} {% if not is_child %}
{{ tool.versionName }} {% endif %} {% if not is_child %} {{ tool.launchUrl }} {% endif %} {% if tool.course is not empty %} {{ tool.course.title }} {% endif %} {% if tool.session is not empty %} ({{ tool.session.name }}) {% endif %} {% if not is_child and tool.version == 'lti1p3' %} {{ 'webservices.png'|img(22, 'ConfigSettingsForTool'|get_plugin_lang('ImsLtiPlugin')) }} {% endif %} {% if not is_child %} {{ 'multiplicate_survey.png'|img(22, 'AddInCourses'|get_plugin_lang('ImsLtiPlugin')) }} {% endif %} {% if not is_child %} {{ 'session.png'|img(22, 'AddInSessions'|get_plugin_lang('ImsLtiPlugin')) }} {% endif %} {% if is_child %} {% for category in categories %} {% set url_eval_params = null %} {% if tool.session is not empty %} {% if category.get_course_code == tool.course.code and category.get_session_id == tool.session.id %} {% set url_eval_params = {'selectcat': category.get_id, 'cidReq': tool.course.code, 'id_session': tool.session.id, 'gidReq': 0, 'gradebook': 0}|url_encode() %} {% endif %} {% else %} {% if category.get_course_code == tool.course.code %} {% set url_eval_params = {'selectcat': category.get_id, 'cidReq': tool.course.code, 'id_session': 0, 'gidReq': 0, 'gradebook': 0}|url_encode() %} {% endif %} {% endif %} {% if url_eval_params is not null %} {{ 'gradebook.png'|img(22, 'MakeQualifiable'|get_lang) }} {% endif %} {% endfor %} {% endif %} {{ 'edit.png'|img(22, 'Edit'|get_lang) }} {{ 'delete.png'|img(22, 'Delete'|get_lang) }} {% endmacro %} {{ 'ImsLtiDescription'|get_plugin_lang('ImsLtiPlugin') }} {% autoescape 'html' %}
{{ 'PlatformKeys'|get_plugin_lang('ImsLtiPlugin') }} {{ 'AddExternalTool'|get_plugin_lang('ImsLtiPlugin') }}
{% for tool in tools %} {{ table_tool.row_tool(tool, false, categories, _p) }} {% for child_tool in tool.getChildren %} {{ table_tool.row_tool(child_tool, true, categories, _p) }} {% endfor %} {% endfor %}
{{ 'Name'|get_lang }} {{ 'LaunchUrl'|get_plugin_lang('ImsLtiPlugin') }} {{ 'Course'|get_lang }} {{ 'Actions'|get_lang }}
{% endautoescape %}