list.tpl 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <legend>
  2. <h1>{{ "ManageSkills" | get_lang }}</h1>
  3. </legend>
  4. <div class="table table-responsive">
  5. <table class="table table-hover table-striped">
  6. <thead>
  7. <tr>
  8. <th>{{ "Badges" | get_lang }}</th>
  9. <th>{{ "Name" | get_lang }}</th>
  10. <th class="text-center">{{ "ShortCode" | get_lang }}</th>
  11. <th class="text-center">{{ "Description" | get_lang }}</th>
  12. <th class="text-center">{{ "Options" | get_lang }}</th>
  13. </tr>
  14. </thead>
  15. <tfoot>
  16. <tr>
  17. <th>{{ "Badges" | get_lang }}</th>
  18. <th>{{ "Name" | get_lang }}</th>
  19. <th class="text-center">{{ "ShortCode" | get_lang }}</th>
  20. <th class="text-center">{{ "Description" | get_lang }}</th>
  21. <th class="text-center">{{ "Options" | get_lang }}</th>
  22. </tr>
  23. </tfoot>
  24. <tbody>
  25. {% for skill in skills %}
  26. <tr>
  27. <td width="50">
  28. {% if skill.icon is empty %}
  29. <img src="{{ 'badges-default.png' | icon(32) }}" width="32" height="32" alt="{{ skill.name }}">
  30. {% else %}
  31. <img src="{{ skill.web_icon_path }}" width="32" height="32" alt="{{ skill.name }}">
  32. {% endif %}
  33. </td>
  34. <td width="200">{{ skill.name }}</td>
  35. <td class="text-center">{{ skill.short_code }}</td>
  36. <td width="500">{{ skill.description }}</td>
  37. <td class="text-right">
  38. <a href="{{ _p.web_main }}admin/skill_edit.php?id={{ skill.id }}" class="btn btn-primary btn-sm" title="{{ "Edit" | get_lang }}">
  39. <em class="fa fa-edit fa-fw"></em>
  40. </a>
  41. <a href="{{ _p.web_main }}admin/skill_create.php?parent={{ skill.id }}" class="btn btn-primary btn-sm" title="{{ "CreateChildSkill" | get_lang }}">
  42. <em class="fa fa-plus fa-fw"></em>
  43. </a>
  44. <a href="{{ _p.web_main }}admin/skill_badge_create.php?id={{ skill.id }}" class="btn btn-primary btn-sm" title="{{ "CreateBadge" | get_lang }}">
  45. <em class="fa fa-shield fa-fw"></em>
  46. </a>
  47. {% if skill.status == 0 %}
  48. <a href="{{ _p.web_self ~ '?' ~ {"action": "enable", "id": skill.id}|url_encode() }}" class="btn btn-success btn-sm" title="{{ 'Enable' }}">
  49. <em class="fa fa-check-circle-o fa-fw"></em>
  50. </a>
  51. {% else %}
  52. <a href="{{ _p.web_self ~ '?' ~ {"action": "disable", "id": skill.id}|url_encode() }}" class="btn btn-danger btn-sm" title="{{ 'Disable' }}">
  53. <em class="fa fa-ban fa-fw"></em>
  54. </a>
  55. {% endif %}
  56. </td>
  57. </tr>
  58. {% endfor %}
  59. </tbody>
  60. </table>
  61. </div>