list.tpl 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. {{ 'ImsLtiDescription'|get_plugin_lang('ImsLtiPlugin') }}
  2. <div class="btn-toolbar">
  3. <a href="{{ _p.web_plugin }}ims_lti/create.php" class="btn btn-primary">
  4. <span class="fa fa-plus fa-fw" aria-hidden="true"></span> {{ 'AddExternalTool'|get_plugin_lang('ImsLtiPlugin') }}
  5. </a>
  6. </div>
  7. <div class="table-responsive">
  8. <table class="table table-striped table-hover">
  9. <thead>
  10. <tr>
  11. <th>{{ 'Name'|get_lang }}</th>
  12. <th>{{ 'LaunchUrl'|get_plugin_lang('ImsLtiPlugin') }}</th>
  13. <th>{{ 'Actions'|get_lang }}</th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. {% for tool in tools %}
  18. <tr>
  19. <td>{{ tool.name }}</td>
  20. <td>{{ tool.launch_url }}</td>
  21. <td>
  22. <a href="{{ _p.web_plugin }}ims_lti/edit.php?{{ {'id': tool.id}|url_encode() }}" class="btn btn-success">
  23. <span class="fa fa-edit fa-fw" aria-hidden="true"></span> {{ 'Edit'|get_lang }}
  24. </a>
  25. <a href="{{ _p.web_plugin }}ims_lti/delete.php?{{ {'id': tool.id}|url_encode() }}" class="btn btn-danger">
  26. <span class="fa fa-times fa-fw" aria-hidden="true"></span> {{ 'Delete'|get_lang }}
  27. </a>
  28. </td>
  29. </tr>
  30. {% endfor %}
  31. </tbody>
  32. </table>
  33. </div>