Go to file
2023-07-17 14:55:38 +02:00
.vscode Added workspace include to moodle source for intelephense 2023-06-26 11:39:26 +02:00
amd/src Added line drawer alternative to leaderline 2023-07-17 14:53:44 +02:00
classes Reworked timeline grid (stage 1) 2023-07-15 22:00:17 +02:00
cli Plans are imported in correct context now 2023-05-19 16:45:15 +02:00
css Styling 2023-07-08 18:33:48 +02:00
db Added cache for list of teacher's studyplans. 2023-06-30 13:12:19 +02:00
doc Finished documentation 2023-07-03 23:28:46 +02:00
lang Bugfixes 2023-07-04 23:38:08 +02:00
test Test page for line drawing script 2023-07-17 14:55:38 +02:00
.gitignore added build script to easily create zip files 2023-06-03 16:05:27 +02:00
bootstrap-color-constants.png Added bootstrap color reference 2023-06-03 00:00:29 +02:00
build.php Changed build script to not remove existing files 2023-06-16 11:59:36 +02:00
build.sh added build script to easily create zip files 2023-06-03 16:05:27 +02:00
cfg_grades.php Documentation update 2023-07-02 16:34:49 +02:00
doc.php Documentation update 2023-07-02 22:58:54 +02:00
edit-invite.php Loading recovered files from server crash 2023-05-17 21:19:14 +02:00
edit-plan.php Loading recovered files from server crash 2023-05-17 21:19:14 +02:00
invitations.php Loading recovered files from server crash 2023-05-17 21:19:14 +02:00
invited.php Loading recovered files from server crash 2023-05-17 21:19:14 +02:00
lib.php Syntax fix 2023-06-16 13:48:44 +02:00
LICENSE Loading recovered files from server crash 2023-05-17 21:19:14 +02:00
myreport-embed.php Loading recovered files from server crash 2023-05-17 21:19:14 +02:00
myreport.php Whitespace 2023-06-03 14:56:31 +02:00
README.md Added scrollbar styling 2023-07-07 17:22:48 +02:00
reports.php Loading recovered files from server crash 2023-05-17 21:19:14 +02:00
settings.php Bugfixes 2023-07-04 23:38:08 +02:00
styles.css Loading recovered files from server crash 2023-05-17 21:19:14 +02:00
version.php Reworked timeline grid (stage 1) 2023-07-15 22:00:17 +02:00
view-plan.php Auto get first available context on viewing 2023-06-16 13:49:05 +02:00

moodle-local_treestudyplan

The studyplan plugin will automatically add links to the flat navigation bat used in Moodle 3.11 and below However, Moodle 4.0-4.2 use a new "primary navigation" bar, and does not yet support customizing the primary navigation bar (it is a planned feature though)

Use the following workaround: You can add custom primary menu items in Site administration -> Appearance -> Theme settings That page contains an item called "Custom menu items" Add the following into that area to custimize it // [your name for my studyplan]|/local/treestudyplan/myreport.php // [your name for studyplan viewing]|/local/treestudyplan/view-plan.php // [your name for studyplan managing]|/local/treestudyplan/edit-plan.php // For example:

Mijn studieplan|/local/treestudyplan/myreport.php||nl
Studieplannen|/local/treestudyplan/view-plan.php||nl
Studieplannen beheren|/local/treestudyplan/edit-plan.php||nl
My study plan|/local/treestudyplan/myreport.php||en
Study plans|/local/treestudyplan/view-plan.php||en
Manage Study plans|/local/treestudyplan/edit-plan.php||en

Dev Notepad

Size matching and grid view

Link to jsfiddle for size matching with different scroll area (frozen line headings): https://jsfiddle.net/pmkuipers/sfweghr1/4/ Use proper grid styling for column resizing (see same fiddle)

Scroll bar syling

example style with cross-browser support

:root{
  --primary: #006DDD;
 
}
div.scroll {
	height: 50em;
	overflow-y: scroll;
  	scrollbar-color: var(--primary) color-mix(in srgb, var(--primary) 20%, white);
  	scrollbar-width: thin;
}
div.scroll::-webkit-scrollbar {
  width: 8px;
}

/* Track */
div.scroll::-webkit-scrollbar-track {
  background:  color-mix(in srgb, var(--primary) 20%, white);
}
 
/* Handle */
div.scroll::-webkit-scrollbar-thumb {
  background:var(--primary); 
}