Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iena
iena-path-block
Commits
e325b7cb
Commit
e325b7cb
authored
May 28, 2019
by
Thomas Fradet
Browse files
block list improvement
parent
e8d2bb13
Changes
2
Hide whitespace changes
Inline
Side-by-side
block_career.php
View file @
e325b7cb
...
...
@@ -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: .
2
5rem; border-top-right-radius: .
2
5rem;">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: .
1
5rem; border-top-right-radius: .
1
5rem;
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: .
2
5rem; border-bottom-right-radius: .
2
5rem;">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: .
1
5rem; border-bottom-right-radius: .
1
5rem;
border-bottom: none;
">Gérer les parcours</a>'
;
}
$this
->
content
->
text
.
=
'</div>'
;
...
...
styles.css
View file @
e325b7cb
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment