Fixing toolbar actions

Related with 48202b086e
remotes/angel/1.11.x
Angel Fernando Quiroz Campos 8 years ago
parent 8b15e83db9
commit 3c15c718c1
  1. 4
      main/admin/dashboard_add_sessions_to_user.php
  2. 2
      main/work/work_list_all.php

@ -173,15 +173,15 @@ if (isset($_POST['formSent']) && intval($_POST['formSent']) == 1) {
Display::display_header($tool_name);
// Actions
$actionsLeft = '';
if ($user_info['status'] != SESSIONADMIN) {
$actionsLeft = '<a href="dashboard_add_users_to_user.php?user='.$user_id.'">' .
Display::return_icon('add-user.png', get_lang('AssignUsers'), null, ICON_SIZE_MEDIUM ) . '</a>';
$actionsLeft .= '<a href="dashboard_add_courses_to_user.php?user='.$user_id.'">' .
Display::return_icon('course-add.png', get_lang('AssignCourses'), null, ICON_SIZE_MEDIUM) . '</a>';
echo Display::toolbarAction('toolbar-dashboard', array($actionsLeft));
}
echo Display::toolbarAction('toolbar-dashboard', array($actionsLeft));
echo Display::page_header(
sprintf(get_lang('AssignSessionsToX'), api_get_person_name($user_info['firstname'], $user_info['lastname'])),
null,

@ -197,7 +197,7 @@ if (api_is_allowed_to_session_edit(false, true) && !empty($workId) && !$isDrhOfC
$actionsLeft .= Display::toolbarButton(get_lang('DeleteCorrections'), $url, 'remove', 'danger');
}
echo Display::toolbarAction('toolbar-worklist', array($actionsLeft), [12]);
echo Display::toolbarAction('toolbar-worklist', array($actionsLeft));
if (!empty($my_folder_data['title'])) {
echo Display::page_subheader($my_folder_data['title']);

Loading…
Cancel
Save