Minor - Improvements to skills interface - refs CT#8318

remotes/angel/1.11.x
Yannick Warnier 9 years ago
parent 65c9464ef5
commit 426cc1834e
  1. 7
      main/admin/skill_list.php
  2. 30
      main/admin/skills_import.php

@ -139,6 +139,13 @@ switch ($action) {
'warning',
['title' => get_lang('BadgesManagement')]
);
$toolbar .= Display::toolbarButton(
get_lang('ImportSkillsListCSV'),
api_get_path(WEB_CODE_PATH) . 'admin/skills_import.php',
'arrow-up',
'info',
['title' => get_lang('BadgesManagement')]
);
$extraField = new ExtraField('skill');
$arrayVals = $extraField->get_handler_field_info_by_tags('tags');

@ -237,6 +237,9 @@ if (!empty($_POST['formSent']) && $_FILES['import_file']['size'] !== 0) {
$error_message = get_lang('YouMustImportAFileAccordingToSelectedOption');
}
}
$interbreadcrumb[] = array ("url" => 'skill_list.php', "name" => get_lang('ManageSkills'));
Display :: display_header($tool_name);
if (!empty($error_message)) {
@ -246,6 +249,33 @@ if (!empty($see_message_import)) {
Display::display_normal_message($see_message_import);
}
$toolbar = Display::toolbarButton(
get_lang('ManageSkills'),
api_get_path(WEB_CODE_PATH) . 'admin/skill_list.php',
'list',
'success',
['title' => get_lang('CreateSkill')]
);
$toolbar .= '  ';
$toolbar .= Display::toolbarButton(
get_lang('SkillsWheel'),
api_get_path(WEB_CODE_PATH) . 'admin/skills_wheel.php',
'bullseye',
'primary',
['title' => get_lang('CreateSkill')]
);
$toolbar .= '  ';
$toolbar .= Display::toolbarButton(
get_lang('BadgesManagement'),
api_get_path(WEB_CODE_PATH) . 'admin/skill_badge_list.php',
'shield',
'warning',
['title' => get_lang('BadgesManagement')]
);
$toolbar .= '<br /><br />';
echo $toolbar;
$form = new FormValidator('user_import','post','skills_import.php');
$form->addElement('header', '', $tool_name);
$form->addElement('hidden', 'formSent');

Loading…
Cancel
Save