Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new templates for skill level management - Refs BT#10651
- Loading branch information
1 parent
b146d02
commit 84796da
Showing
3 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
<h3>{{ 'Skills' | get_lang }}</h3> | ||
|
||
<ul> | ||
<li> | ||
<a href="{{ _p.web_main }}{{ 'admin/skill_profile.php' }}"> | ||
{{ 'AddProfile' | get_lang }} | ||
</a> | ||
</li> | ||
|
||
<li> | ||
<a href="{{ _p.web_main }}{{ 'admin/skill_level.php' }}"> | ||
{{ 'AddLevel' | get_lang }} | ||
</a> | ||
</li> | ||
</ul> | ||
|
||
|
||
{{ form }} | ||
|
||
|
||
|
||
{% for item in list %} | ||
<h4>{{ item.name }} ({{ item.shortCode }}) | ||
<a href="{{ _p.web_main }}admin/skill.php?action=edit&id={{ item.id }}"> | ||
<img src="{{ 'edit.png'|icon(22) }}"> | ||
</a> | ||
</h4> | ||
{{ item.profile }} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{ form }} | ||
|
||
<table class="data_table"> | ||
<tr> | ||
<th>{{ 'Name' | get_lang }}</th> | ||
<th>{{ 'ShortName' | get_lang }}</th> | ||
|
||
<th>{{ 'Profile' | get_lang }}</th> | ||
<th>{{ 'Actions' | get_lang }}</th> | ||
</tr> | ||
{% for item in list %} | ||
<tr> | ||
<td>{{ item.name }}</td> | ||
<td>{{ item.shortName }}</td> | ||
<td> {{ item.profile }}</td> | ||
<td> | ||
<a href="{{ _p.web_main }}admin/skill_level.php?action=edit&id={{ item.id }}"> | ||
<img src="{{ 'edit.png'|icon(22) }}"> | ||
</a> | ||
|
||
<a href="{{ _p.web_main }}admin/skill_level.php?action=delete&id={{ item.id }}"> | ||
<img src="{{ 'delete.png'|icon(22) }}"> | ||
</a> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{ form }} | ||
|
||
{% for item in list %} | ||
|
||
<h4>{{ item.name }} | ||
|
||
{#<a href="{{ _p.web_main }}admin/skill_level.php?action=add_level&id={{ item.id }}">#} | ||
{#<img src="{{ 'add.png'|icon(22) }}">#} | ||
{#</a>#} | ||
|
||
<a href="{{ _p.web_main }}admin/skill_profile.php?action=edit&id={{ item.id }}"> | ||
<img src="{{ 'edit.png'|icon(22) }}"> </a> | ||
|
||
<a href="{{ _p.web_main }}admin/skill_profile.php?action=delete&id={{ item.id }}"> | ||
<img src="{{ 'delete.png'|icon(22) }}"> | ||
</a> | ||
</h4> | ||
|
||
<ul> | ||
{% for level in item.levels %} | ||
<li> | ||
{{ level }} | ||
|
||
{% if loop.first %} | ||
<img src="{{ 'up_na.png'|icon(22) }}"> | ||
{% else %} | ||
<a href="{{ _p.web_main }}admin/skill_profile.php?action=move_up&level_id={{ level.id }}&id={{ item.id }}"> | ||
<img src="{{ 'up.png'|icon(22) }}"> | ||
</a> | ||
{% endif %} | ||
|
||
{% if loop.last %} | ||
<img src="{{ 'down_na.png'|icon(22) }}"> | ||
{% else %} | ||
<a href="{{ _p.web_main }}admin/skill_profile.php?action=move_down&level_id={{ level.id }}&id={{ item.id }}"> | ||
<img src="{{ 'down.png'|icon(22) }}"> | ||
</a> | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endfor %} |