Browse Source

Add links to skill wheel - refs BT#9084

Angel Fernando Quiroz Campos 10 years ago
parent
commit
b58218c08d

+ 3 - 0
plugin/advancedskills/report.php

@@ -29,6 +29,9 @@ $tableRows = array();
 $tpl = new Template(get_lang('Skills'));
 $tplPath = null;
 
+$tpl->assign('allowSkillsTool', api_get_setting('allow_skills_tool') == 'true');
+$tpl->assign('allowDrhSkillsManagement', api_get_setting('allow_hr_skills_management') == 'true');
+
 if ($isStudent) {
     $sql = "SELECT s.name, sru.acquired_skill_at, c.title, c.directory "
         . "FROM $skillTable s "

+ 9 - 0
plugin/advancedskills/tpl/drh.tpl

@@ -1,3 +1,12 @@
+{% if allowSkillsTool %}
+    <div class="btn-group">
+        <a class="btn btn-default" href="{{ _p.web_main }}social/skills_wheel.php">{{ 'MySkills' | get_lang }}</a>
+        {% if allowDrhSkillsManagement %}
+            <a class="btn btn-default" href="{{ _p.web_main }}admin/skills_wheel.php">{{ 'ManageSkills' | get_lang }}</a>
+        {% endif %}
+    </div>
+{% endif %}
+
 <h1 class="page-header">{{ 'Skills' | get_lang }}</h1>
 
 <div class="row">

+ 6 - 0
plugin/advancedskills/tpl/student.tpl

@@ -1,3 +1,9 @@
+{% if allowSkillsTool %}
+    <div class="btn-group">
+        <a class="btn btn-default" href="{{ _p.web_main }}social/skills_wheel.php">{{ 'MySkills' | get_lang }}</a>
+    </div>
+{% endif %}
+
 <h1 class="page-header">{{ 'SkillsAcquired' | get_lang }}</h1>
 
 {% if rows %}

+ 6 - 0
plugin/advancedskills/tpl/student_boss.tpl

@@ -1,3 +1,9 @@
+{% if allowSkillsTool %}
+    <div class="btn-group">
+        <a class="btn btn-default" href="{{ _p.web_main }}social/skills_wheel.php">{{ 'MySkills' | get_lang }}</a>
+    </div>
+{% endif %}
+
 <h1 class="page-header">{{ 'SkillsAcquired' | get_lang }}</h1>
 
 <form class="form-inline" method="post" action="{{ _p.web_self }}">