Commit e325b7cb authored by Thomas Fradet's avatar Thomas Fradet
Browse files

block list improvement

parent e8d2bb13
......@@ -69,9 +69,9 @@ class block_career extends block_base
$this->content = new stdClass;
$this->content->text = '';
$this->content->text .= '<div class="list-group iena-list-group">';
$this->content->text .= '<div class="list-group career-list-group font-weight-light">';
$this->content->text .= '<a href="' . $CFG->wwwroot . '/course/view.php?id=' . $COURSE->id . '" class="list-group-item list-group-item-success list-group-item-action" style="border-top-left-radius: .25rem; border-top-right-radius: .25rem;">Accueil du cours</a>';
$this->content->text .= '<a href="' . $CFG->wwwroot . '/course/view.php?id=' . $COURSE->id . '" class="list-group-item list-group-item-success list-group-item-action" style="border-top-left-radius: .15rem; border-top-right-radius: .15rem; border-top: none;">Accueil du cours</a>';
foreach ($request as $value) {
......@@ -91,7 +91,7 @@ class block_career extends block_base
}
if (has_capability('moodle/course:update', $context = context_course::instance($COURSE->id), $USER->id)) {
$this->content->text .= '<a href="' . $CFG->wwwroot . '/blocks/career/career_list.php?courseid=' . $COURSE->id . '" " class="list-group-item list-group-item-primary list-group-item-action" style="border-bottom-left-radius: .25rem; border-bottom-right-radius: .25rem;">Gérer les parcours</a>';
$this->content->text .= '<a href="' . $CFG->wwwroot . '/blocks/career/career_list.php?courseid=' . $COURSE->id . '" " class="list-group-item list-group-item-primary list-group-item-action" style="border-bottom-left-radius: .15rem; border-bottom-right-radius: .15rem; border-bottom: none;">Gérer les parcours</a>';
}
$this->content->text .= '</div>';
......
......@@ -58,6 +58,13 @@
display: initial;
}
/* Block itself */
.career-list-group .list-group-item {
border: none;
border-top: 1px solid rgba(0,0,0,.125);
border-bottom: 1px solid rgba(0,0,0,.125);
}
/* Path settings */
.left_course_elements, .right_course_elements {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment