drh_report.html.twig 3.5 KB

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