drh_report.tpl 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {% if allowSkillsTool %}
  2. <div class="btn-group">
  3. <a class="btn btn-default" href="{{ _p.web_main }}social/skills_wheel.php">{{ 'SkillsWheel' | get_lang }}</a>
  4. {% if allowDrhSkillsManagement %}
  5. <a class="btn btn-default" href="{{ _p.web_main }}admin/skills_wheel.php">{{ 'ManageSkills' | get_lang }}</a>
  6. {% endif %}
  7. </div>
  8. {% endif %}
  9. <h1 class="page-header">{{ 'Skills' | get_lang }}</h1>
  10. <div class="row">
  11. <div class="span6">
  12. <form class="form-inline" method="post" action="{{ _p.web_self }}">
  13. <label for="course">{{ 'Courses' | get_lang }}</label>
  14. <select name="course" id="course">
  15. <option value="0">{{ 'Select' | get_lang }}</option>
  16. {% for course in courses %}
  17. <option value="{{ course.id }}" {{ (course.id == selectedCourse) ? 'selected' : '' }}>{{ course.title }}</option>
  18. {% endfor %}
  19. </select>
  20. <button type="submit" class="btn btn-default">{{ 'Filter' | get_lang }}</button>
  21. </form>
  22. </div>
  23. <div class="span6">
  24. <form class="form-inline" method="post" action="{{ _p.web_self }}">
  25. <label for="skill">{{ 'Skills' | get_lang }}</label>
  26. <select name="skill" id="skill">
  27. <option value="0">{{ 'Select' | get_lang }}</option>
  28. {% for skill in skills %}
  29. <option value="{{ skill.id }}" {{ (skill.id == selectedSkill) ? 'selected' : '' }}>{{ skill.name }}</option>
  30. {% endfor %}
  31. </select>
  32. <button type="submit" class="btn btn-default"><i class="fa fa-filter"></i>{{ 'Filter' | get_lang }}</button>
  33. </form>
  34. </div>
  35. </div>
  36. <h2 class="page-header">{{ reportTitle }} <small>{{ reportSubTitle }}</small></h2>
  37. {% if rows %}
  38. <table class="table">
  39. <thead>
  40. <tr>
  41. {% if action == 'filterByCourse' %}
  42. <th>{{ 'Course' | get_lang }}</th>
  43. <th>{{ 'Skill' | get_lang }}</th>
  44. <th>{{ 'Student' | get_lang }}</th>
  45. <th>{{ 'Date' | get_lang }}</th>
  46. {% elseif action == 'filterBySkill' %}
  47. <th>{{ 'Skill' | get_lang }}</th>
  48. <th>{{ 'Student' | get_lang }}</th>
  49. <th>{{ 'Date' | get_lang }}</th>
  50. <th>{{ 'Course' | get_lang }}</th>
  51. {% endif %}
  52. </tr>
  53. </thead>
  54. <tbody>
  55. {% for row in rows %}
  56. <tr>
  57. {% if action == 'filterByCourse' %}
  58. <td><img src="{{ row.courseImage }}" alt="{{ row.c_name }}"> {{ row.c_name }}</td>
  59. <td>{{ row.skill_name }}</td>
  60. <td>{{ row.completeName }}</td>
  61. <td>{{ row.achievedAt }}</td>
  62. {% elseif action == 'filterBySkill' %}
  63. <td>{{ row.skill_name }}</td>
  64. <td>{{ row.completeName }}</td>
  65. <td>{{ row.achievedAt }}</td>
  66. <td><img src="{{ row.courseImage }}" alt="{{ row.c_name }}"> {{ row.c_name }}</td>
  67. {% endif %}
  68. </tr>
  69. {% endfor %}
  70. </tbody>
  71. </table>
  72. {% else %}
  73. <div class="alert alert-info">
  74. {{ 'NoResults' | get_lang }}
  75. </div>
  76. {% endif %}