Skip to content

Commit

Permalink
arrangement of buttons in light courses sessions - refs BT#7683
Browse files Browse the repository at this point in the history
  • Loading branch information
aragonc committed Jul 25, 2016
1 parent 4c86149 commit 1d25a7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions app/Resources/public/css/base.css
Expand Up @@ -5461,12 +5461,6 @@ a.sessionView {
overflow-y: auto;
max-height:50px;
}
.view-by-session-right-actions {
float : right;
}
.view-by-session-right-actions img {
width : 12px;
}
.session-view-session-go-to-course-in-session {
font-size : 12px;
}
Expand Down
4 changes: 2 additions & 2 deletions main/inc/lib/course.lib.php
Expand Up @@ -5954,7 +5954,7 @@ public static function getCourseParamsForDisplay($courseId, $loadDirs = false)
$params['right_actions'] .= '<a href="'.api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cidReq='.$course['code'].'">'.Display::return_icon('edit.png', get_lang('Edit'), array('align' => 'absmiddle'),ICON_SIZE_SMALL).'</a>';
$params['right_actions'] .= Display::div('', array('id' => 'document_result_'.$course_info['real_id'].'_0', 'class'=>'document_preview_container'));
} else {
$params['right_actions'].= '<a href="'.api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cidReq='.$course['code'].'">'.Display::return_icon('edit.png', get_lang('Edit'), array('align' => 'absmiddle'),ICON_SIZE_SMALL).'</a>';
$params['right_actions'].= '<a class="btn btn-default btn-sm" title="'.get_lang('Edit').'" href="'.api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cidReq='.$course['code'].'">'.Display::returnFontAwesomeIcon('pencil').'</a>';
}

if ($course_info['status'] == COURSEMANAGER) {
Expand All @@ -5967,7 +5967,7 @@ public static function getCourseParamsForDisplay($courseId, $loadDirs = false)
$params['right_actions'] .= Display::div('', array('id' => 'document_result_'.$course_info['real_id'].'_0', 'class'=>'document_preview_container'));
} else {
if ($course_info['status'] == COURSEMANAGER) {
$params['right_actions'].= '<a href="'.api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cidReq='.$course['code'].'">'.Display::return_icon('edit.png', get_lang('Edit'), array('align' => 'absmiddle'),ICON_SIZE_SMALL).'</a>';
$params['right_actions'].= '<a class="btn btn-default btn-sm" title="'.get_lang('Edit').'" href="'.api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cidReq='.$course['code'].'">'.Display::returnFontAwesomeIcon('pencil').'</a>';
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions main/inc/lib/userportal.lib.php
Expand Up @@ -1773,7 +1773,7 @@ private static function getHtmlForCourse(

$button = '';
if ($displayButton) {
$button = '<input id="session-view-button-'.intval($id).'" class="session-view-button btn btn-default" type="button" onclick="hideUnhide(\'courseblock-'.intval($id).'\', \'session-view-button-'.intval($id).'\', \'+\', \'-\')" value="+" />';
$button = '<input id="session-view-button-'.intval($id).'" class="btn btn-default btn-sm" type="button" onclick="hideUnhide(\'courseblock-'.intval($id).'\', \'session-view-button-'.intval($id).'\', \'+\', \'-\')" value="+" />';
}

$icon = Display::return_icon(
Expand All @@ -1795,7 +1795,7 @@ private static function getHtmlForCourse(

// notification
if (!empty($tabParams['right_actions'])) {
$rightActions = '<div class="view-by-session-right-actions">'.$tabParams['right_actions'].'</div>';
$rightActions = '<div class="pull-right">'.$tabParams['right_actions'].'</div>';
}

return "<div>
Expand Down

0 comments on commit 1d25a7d

Please sign in to comment.