formative-actions-list.tpl 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <script type='text/javascript' src="../js/sepe.js"></script>
  2. <link rel="stylesheet" type="text/css" href="../resources/plugin.css"/>
  3. <div class="row">
  4. <div class="col-md-12">
  5. {% if message_info != "" %}
  6. <div class="alert alert-success">
  7. {{ message_info }}
  8. </div>
  9. {% endif %}
  10. {% if message_error != "" %}
  11. <div class="alert alert-danger">
  12. {{ message_error }}
  13. </div>
  14. {% endif %}
  15. <div class="page-header">
  16. <h2>{{ 'FormativesActionsList' | get_plugin_lang('SepePlugin') }}</h2>
  17. </div>
  18. <div class="report_section">
  19. {% if course_action_list|length > 0 %}
  20. <input type="hidden" id="confirmDeleteUnlinkAction" value="{{ 'confirmDeleteAction' | get_plugin_lang('SepePlugin') }}" />
  21. <table class="table table-bordered sepe-box-center" style="width:auto">
  22. {% for course in course_action_list %}
  23. <tr>
  24. <td class="sepe-vertical-align-middle">{{ 'Course' | get_lang }}: <strong>{{ course.title }}</strong> -> {{ 'ActionId' | get_plugin_lang('SepePlugin') | upper }}: <strong>{{ course.action_origin }} {{ course.action_code }}</strong></td>
  25. <td class="text-center">
  26. <a href="#" class="btn btn-danger btn-sm sepe-margin-side delete-action" id="delete-action-id{{ course.action_id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a>
  27. <a href="#" class="btn btn-warning btn-sm sepe-margin-side unlink-action" id="unlink-action-id{{ course.id }}">{{ 'Unlink' | get_plugin_lang('SepePlugin') }}</a>
  28. <a href="formative-action.php?cid={{ course.course_id }}" class="btn btn-info btn-sm sepe-margin-side">{{ 'SeeOrEdit' | get_plugin_lang('SepePlugin') }}</a>
  29. </td>
  30. </tr>
  31. {% endfor %}
  32. </table>
  33. {% else %}
  34. <div class="alert alert-warning">
  35. {{ 'NoFormativeActionToCourse' | get_plugin_lang('SepePlugin') }}
  36. </div>
  37. {% endif %}
  38. </div>
  39. <hr />
  40. <div class="page-header">
  41. <h2>{{ 'CourseFreeOfFormativeAction' | get_plugin_lang('SepePlugin') }}</h2>
  42. </div>
  43. <div class="report_section">
  44. <input type="hidden" id="alertAssignAction" value="{{ 'alertAssignAction'| get_plugin_lang('SepePlugin') }}" />
  45. <table class="table table-striped">
  46. {% for course in course_free_list %}
  47. <tr>
  48. <td class="sepe-vertical-align-middle">{{ 'Course' | get_lang }}: <strong>{{ course.title }}</strong></td>
  49. <td class="text-center sepe-vertical-align-middle">
  50. <select class="chzn-select" id="action_formative{{ course.id }}" style="width:250px">
  51. <option value="">{{ 'SelectAction' | get_plugin_lang('SepePlugin') }}</option>
  52. {% for action in action_free_list %}
  53. <option value="{{ action.id }}">
  54. {{ action.action_origin }} {{ action.action_code }}
  55. </option>
  56. {% endfor %}
  57. </select>
  58. </td>
  59. <td class="text-center sepe-vertical-align-middle" style="min-width:240px">
  60. <a href="#" class="btn btn-info btn-sm sepe-margin-side assign_action" id="course_id{{ course.id }}">{{ 'AssignAction' | get_plugin_lang('SepePlugin') }}</a>
  61. <a href="formative-action-edit.php?new_action=1&cid={{ course.id }}" class="btn btn-success btn-sm sepe-margin-side">{{ 'CreateAction' | get_plugin_lang('SepePlugin') }}</a>
  62. </td>
  63. </tr>
  64. {% endfor %}
  65. </table>
  66. </div>
  67. </div>
  68. </div>