student_boss_report.tpl 1.6 KB

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