Actualización
This commit is contained in:
68
plugin/ims_lti/view/add.tpl
Normal file
68
plugin/ims_lti/view/add.tpl
Normal file
@@ -0,0 +1,68 @@
|
||||
<div class="row">
|
||||
{% if global_tools|length or added_tools|length %}
|
||||
<div class="col-sm-3">
|
||||
{% if added_tools|length %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h2 class="panel-title">{{ 'ToolsAdded'|get_plugin_lang('ImsLtiPlugin') }}</h2>
|
||||
</div>
|
||||
<ul class="list-group">
|
||||
{% for tool in added_tools %}
|
||||
<li class="list-group-item {{ type == tool.id ? 'active' : '' }}">
|
||||
<div class="pull-right">
|
||||
{% if tool.isActiveDeepLinking %}
|
||||
<a href="{{ _p.web_plugin }}ims_lti/start.php?id={{ tool.id }}&{{ _p.web_cid_query }}">
|
||||
{{ 'settings.png'|img(22, 'Configure'|get_lang) }}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if tool.version == 'lti1p3' %}
|
||||
<a href="{{ _p.web_plugin }}ims_lti/tool_settings.php?{{ {'id': tool.id}|url_encode }}" class="ajax"
|
||||
data-title="{{ 'ConfigSettingsForTool'|get_plugin_lang('ImsLtiPlugin') }}">
|
||||
{{ 'webservices.png'|img(22, 'ConfigSettingsForTool'|get_plugin_lang('ImsLtiPlugin')) }}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<a href="{{ _p.web_plugin }}ims_lti/configure.php?action=edit&id={{ tool.id }}&{{ _p.web_cid_query }}">
|
||||
{{ 'edit.png'|img(22, 'Edit'|get_lang) }}
|
||||
</a>
|
||||
</div>
|
||||
{{ tool.name|e }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if global_tools|length %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h2 class="panel-title">{{ 'AvailableTools'|get_plugin_lang('ImsLtiPlugin') }}</h2>
|
||||
</div>
|
||||
<ul class="list-group">
|
||||
{% for tool in global_tools %}
|
||||
<li class="list-group-item {{ type == tool.id ? 'active' : '' }}">
|
||||
<div class="pull-right">
|
||||
{% if tool.isActiveDeepLinking %}
|
||||
<a href="{{ _p.web_plugin }}ims_lti/start.php?id={{ tool.id }}&{{ _p.web_cid_query }}">
|
||||
{{ 'settings.png'|img(22, 'Configure'|get_lang) }}
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ _p.web_self }}?type={{ tool.id }}&{{ _p.web_cid_query }}">
|
||||
{{ 'add.png'|img(22, 'Add'|get_lang) }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{{ tool.name|e }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="col-sm-9 {{ not global_tools|length and not added_tools|length ? 'col-md-offset-3' : '' }}">
|
||||
{{ form }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user