admin.tpl 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {{ 'ImsLtiDescription'|get_plugin_lang('ImsLtiPlugin') }}
  2. {% autoescape 'html' %}
  3. <div class="btn-toolbar">
  4. <a href="{{ _p.web_plugin }}ims_lti/create.php" class="btn btn-primary">
  5. <span class="fa fa-plus fa-fw" aria-hidden="true"></span> {{ 'AddExternalTool'|get_plugin_lang('ImsLtiPlugin') }}
  6. </a>
  7. </div>
  8. <div class="table-responsive">
  9. <table class="table table-striped table-hover">
  10. <thead>
  11. <tr>
  12. <th>{{ 'Name'|get_lang }}</th>
  13. <th>{{ 'LaunchUrl'|get_plugin_lang('ImsLtiPlugin') }}</th>
  14. <th class="text-center">{{ 'IsGlobal'|get_plugin_lang('ImsLtiPlugin') }}</th>
  15. <th class="text-right">{{ 'Actions'|get_lang }}</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. {% for tool in tools %}
  20. <tr>
  21. <td>{{ tool.name }}</td>
  22. <td>{{ tool.launchUrl }}</td>
  23. <td class="text-center">
  24. {% if tool.isGlobal %}
  25. <span class="fa fa-check-square-o" aria-hidden="true"></span>
  26. <span class="sr-only">{{ 'Yes'|get_lang }}</span>
  27. {% else %}
  28. <span class="fa fa-square-o" aria-hidden="true"></span>
  29. <span class="sr-only">{{ 'No'|get_lang }}</span>
  30. {% endif %}
  31. </td>
  32. <td class="text-right">
  33. <a href="{{ _p.web_plugin }}ims_lti/edit.php?{{ {'id': tool.id}|url_encode() }}" class="btn btn-success">
  34. <span class="fa fa-edit fa-fw" aria-hidden="true"></span> {{ 'Edit'|get_lang }}
  35. </a>
  36. <a href="{{ _p.web_plugin }}ims_lti/delete.php?{{ {'id': tool.id}|url_encode() }}" class="btn btn-danger">
  37. <span class="fa fa-times fa-fw" aria-hidden="true"></span> {{ 'Delete'|get_lang }}
  38. </a>
  39. </td>
  40. </tr>
  41. {% endfor %}
  42. </tbody>
  43. </table>
  44. </div>
  45. {% endautoescape %}