student_boss_report.tpl 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {% if allowSkillsTool %}
  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. </div>
  7. {% endif %}
  8. <h1 class="page-header">{{ 'SkillsAcquired' | get_lang }}</h1>
  9. <form class="form-inline" method="post" action="{{ _p.web_self }}">
  10. <label>{{ 'Students' | get_lang }}</label>
  11. <select name="student" id="student">
  12. <option value="0">{{ 'Select' | get_lang }}</option>
  13. {% for student in followedStudents %}
  14. <option value="{{ student.user_id }}" {{ (student.user_id == selectedStudent) ? 'selected' : '' }}>{{ student.completeName }}</option>
  15. {% endfor %}
  16. </select>
  17. <button type="submit" class="btn btn-primary">{{ 'Search' | get_lang }}</button>
  18. </form>
  19. {% if rows %}
  20. <table class="table">
  21. <thead>
  22. <tr>
  23. <th>{{ 'Student' | get_lang }}</th>
  24. <th>{{ 'SkillsAcquired' | get_lang }}</th>
  25. <th>{{ 'Date' | get_lang }}</th>
  26. <th>{{ 'Course' | get_lang }}</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {% for row in rows %}
  31. <tr>
  32. <td>{{ row.completeName }}</td>
  33. <td>{{ row.skillName }}</td>
  34. <td>{{ row.achievedAt }}</td>
  35. <td><img src="{{ row.courseImage }}" alt="{{ row.courseName }}"> {{ row.courseName }}</td>
  36. </tr>
  37. {% endfor %}
  38. </tbody>
  39. </table>
  40. {% else %}
  41. <div class="alert alert-info">
  42. {{ 'NoResults' | get_lang }}
  43. </div>
  44. {% endif %}