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