list.tpl 2.6 KB

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