add.tpl 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <div class="row">
  2. {% if global_tools|length or added_tools|length %}
  3. <div class="col-sm-3">
  4. {% if added_tools|length %}
  5. <div class="panel panel-default">
  6. <div class="panel-heading">
  7. <h2 class="panel-title">{{ 'ToolsAdded'|get_plugin_lang('ImsLtiPlugin') }}</h2>
  8. </div>
  9. <ul class="list-group">
  10. {% for tool in added_tools %}
  11. <li class="list-group-item {{ type == tool.id ? 'active' : '' }}">
  12. <div class="pull-right">
  13. {% if tool.isActiveDeepLinking %}
  14. <a href="{{ _p.web_plugin }}ims_lti/start.php?id={{ tool.id }}&{{ _p.web_cid_query }}">
  15. {{ 'settings.png'|img(22, 'Configure'|get_lang) }}
  16. </a>
  17. {% endif %}
  18. <a href="{{ _p.web_plugin }}ims_lti/configure.php?action=edit&id={{ tool.id }}&{{ _p.web_cid_query }}">
  19. {{ 'edit.png'|img(22, 'Edit'|get_lang) }}
  20. </a>
  21. </div>
  22. {{ tool.name|e }}
  23. </li>
  24. {% endfor %}
  25. </ul>
  26. </div>
  27. {% endif %}
  28. {% if global_tools|length %}
  29. <div class="panel panel-default">
  30. <div class="panel-heading">
  31. <h2 class="panel-title">{{ 'AvailableTools'|get_plugin_lang('ImsLtiPlugin') }}</h2>
  32. </div>
  33. <ul class="list-group">
  34. {% for tool in global_tools %}
  35. <li class="list-group-item {{ type == tool.id ? 'active' : '' }}">
  36. <div class="pull-right">
  37. {% if tool.isActiveDeepLinking %}
  38. <a href="{{ _p.web_plugin }}ims_lti/start.php?id={{ tool.id }}&{{ _p.web_cid_query }}">
  39. {{ 'settings.png'|img(22, 'Configure'|get_lang) }}
  40. </a>
  41. {% else %}
  42. <a href="{{ _p.web_self }}?type={{ tool.id }}&{{ _p.web_cid_query }}">
  43. {{ 'add.png'|img(22, 'Add'|get_lang) }}
  44. </a>
  45. {% endif %}
  46. </div>
  47. {{ tool.name|e }}
  48. </li>
  49. {% endfor %}
  50. </ul>
  51. </div>
  52. {% endif %}
  53. </div>
  54. {% endif %}
  55. <div class="col-sm-9 {{ not global_tools|length and not added_tools|length ? 'col-md-offset-3' : '' }}">
  56. {{ form }}
  57. </div>
  58. </div>