badge_list.tpl 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <div class="col-md-12">
  2. <div class="openbadges-tabs">
  3. <ul class="nav nav-tabs">
  4. <li>
  5. <a href="{{ _p.web_main }}admin/skill_badge.php">{{ 'Home' | get_lang }}</a>
  6. </li>
  7. <li class="active">
  8. <a href="{{ _p.web_main }}admin/skill_badge_list.php">{{ "CurrentBadges" | get_lang }}</a>
  9. </li>
  10. </ul>
  11. </div>
  12. <div class="tab-content">
  13. <div class="tab-pane active">
  14. <div class="openbadges-introduction">
  15. {% if not errorMessage is empty %}
  16. <div class="alert alert-error">
  17. {{ errorMessage }}
  18. </div>
  19. {% endif %}
  20. <div class="openbadges-tablet">
  21. <table class="table">
  22. <thead>
  23. <tr>
  24. <th>{{ 'Name' | get_lang }}</th>
  25. <th>{{ 'Description' | get_lang }}</th>
  26. <th>{{ 'Actions' | get_lang }}</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {% for skill in skills %}
  31. <tr>
  32. <td>
  33. {% if skill.icon is empty %}
  34. <img src="{{ 'badges-default.png' | icon(128) }}" width="50" height="50" alt="{{ skill.name }}">
  35. {% else %}
  36. <img src="{{ skill.web_icon_path }}" width="50" height="50" alt="{{ skill.name }}">
  37. {% endif %}
  38. {{ skill.name }}
  39. </td>
  40. <td>{{ skill.description }}</td>
  41. <td>
  42. <a href="{{ _p.web_main }}admin/skill_badge_create.php?id={{ skill.id }}" title="{{ 'Edit' | get_lang }}">
  43. <img src="{{ 'edit.png' | icon(22) }}" width="22" height="22" alt="{{ 'Edit' | get_lang }}">
  44. </a>
  45. </td>
  46. </tr>
  47. {% endfor %}
  48. </tbody>
  49. </table>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>