student_boss_report.html.twig 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {% autoescape false %}
  2. {% if allow_skill_tool %}
  3. <div class="btn-group">
  4. <a class="btn btn-default" href="{{ _p.web_main }}social/skills_wheel.php">
  5. {{ 'SkillsWheel' | get_lang }}
  6. </a>
  7. </div>
  8. {% endif %}
  9. <h1 class="page-header">{{ 'SkillsAcquired' | get_lang }}</h1>
  10. <form class="form-inline" method="post" action="{{ _p.web_self }}">
  11. <label>{{ 'Students' | get_lang }}</label>
  12. <select name="student" id="student">
  13. <option value="0">{{ 'Select' | get_lang }}</option>
  14. {% for student in followed_students %}
  15. <option value="{{ student.user_id }}" {{ (student.user_id == selected_student) ? 'selected' : '' }}>
  16. {{ student.completeName }}
  17. </option>
  18. {% endfor %}
  19. </select>
  20. <button type="submit" class="btn btn-primary">{{ 'Search' | get_lang }}</button>
  21. </form>
  22. {% if rows %}
  23. <table class="table">
  24. <thead>
  25. <tr>
  26. <th>{{ 'Student' | get_lang }}</th>
  27. <th>{{ 'SkillsAcquired' | get_lang }}</th>
  28. <th>{{ 'Date' | get_lang }}</th>
  29. <th>{{ 'Course' | get_lang }}</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. {% for row in rows %}
  34. <tr>
  35. <td>{{ row.complete_name }}</td>
  36. <td>{{ row.skill_name }}</td>
  37. <td>{{ row.achieved_at }}</td>
  38. <td><img src="{{ row.course_image }}" alt="{{ row.course_name }}"> {{ row.course_name }}</td>
  39. </tr>
  40. {% endfor %}
  41. </tbody>
  42. </table>
  43. {% endif %}
  44. {% endautoescape %}